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, io.packagecloud.client.Connection connection)
          Configured client.
 io.packagecloud.client.Connection getConnectionForHostAndPort(String hostname, String port, String protocol)
           
 List<com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials> getCredentials(String domain)
          Gets credentials.
 com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials getCredentialsForUser(String username, String domain)
          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(String domain)
Gets credentials.

Returns:
the credentials

getCredentialsForUser

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

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

getConnectionForHostAndPort

public io.packagecloud.client.Connection getConnectionForHostAndPort(String hostname,
                                                                     String port,
                                                                     String protocol)

configuredClient

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

Parameters:
creds - the creds
Returns:
the package cloud


Copyright © 2004-2016. All Rights Reserved.