org.jenkinsci.plugins.packagecloud
Class PackageCloudHelper

java.lang.Object
  extended by org.jenkinsci.plugins.packagecloud.PackageCloudHelper

public class PackageCloudHelper
extends Object

Helper for interacting with the PackageCloud client library


Constructor Summary
PackageCloudHelper()
           
 
Method Summary
 io.packagecloud.client.PackageCloud configuredClient(com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials creds)
          Configured client.
 List<com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials> getCredentials()
          Gets credentials.
 com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials getCredentialsForUser(String username)
          Gets credentials for user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageCloudHelper

public PackageCloudHelper()
Method Detail

getCredentials

public List<com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials> getCredentials()
Gets credentials.

Returns:
the credentials

getCredentialsForUser

public com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials getCredentialsForUser(String username)
Gets credentials for user.

Parameters:
username - the username
Returns:
the credentials for user

configuredClient

public io.packagecloud.client.PackageCloud configuredClient(com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials creds)
Configured client.

Parameters:
creds - the creds
Returns:
the package cloud


Copyright © 2004-2014. All Rights Reserved.