public class PackageCloud extends Object
| Constructor and Description |
|---|
PackageCloud(Client configuredClient)
Instantiates a new PackageCloud object
|
| Modifier and Type | Method and Description |
|---|---|
Distributions |
getDistributions()
Gets available distributions, see
the distributions/index
api docs.
|
Contents |
packageContents(Package pkg)
Package contents.
|
boolean |
putPackage(Package pkg)
Put package.
|
boolean |
putPackage(Package pkg,
String username)
Put package to a shared repository.
|
public Distributions getDistributions() throws UnauthorizedException, IOException, ServerErrorException
UnauthorizedExceptionIOExceptionServerErrorExceptionpublic boolean putPackage(Package pkg) throws UnauthorizedException, IOException, ServerErrorException
pkg - the Package to uploadUnauthorizedExceptionIOExceptionServerErrorExceptionpublic boolean putPackage(Package pkg, String username) throws UnauthorizedException, IOException, ServerErrorException
pkg - the Package to uploadusername - the username of owner of the shared repositoryUnauthorizedExceptionIOExceptionServerErrorExceptionpublic Contents packageContents(Package pkg) throws Exception
pkg - the pkgUnauthorizedExceptionIOExceptionServerErrorExceptionExceptionCopyright © 2014–2016. All rights reserved.