Documentation
¶
Index ¶
- Constants
- Variables
- func ContructEndpoint(subdomain, domain string) string
- func CreateVersionDate() *string
- func DefaultTransport() gohttp.RoundTripper
- func EnvFallBack(envs []string, defaultValue string) string
- func RefreshToken(sess *bxsession.Session) error
- type ClientSession
- type Config
- type Session
- type UserConfig
Constants ¶
View Source
const RetryAPIDelay = 5 * time.Second
RetryAPIDelay - retry api delay
Variables ¶
View Source
var BluemixRegion string
BluemixRegion ...
Functions ¶
func ContructEndpoint ¶
func CreateVersionDate ¶
func CreateVersionDate() *string
CreateVersionDate requires mandatory version attribute. Any date from 2019-12-13 up to the currentdate may be provided. Specify the current date to request the latest version.
func EnvFallBack ¶
func RefreshToken ¶
Types ¶
type ClientSession ¶
type ClientSession interface {
BluemixSession() (*bxsession.Session, error)
BluemixUserDetails() (*UserConfig, error)
CdToolchainV2() (*cdtoolchainv2.CdToolchainV2, error)
CdTektonPipelineV2() (*cdtektonpipelinev2.CdTektonPipelineV2, error)
}
ClientSession ...
type Config ¶
type Config struct {
//BluemixAPIKey is the Bluemix api key
BluemixAPIKey string
//Bluemix region
Region string
//Resource group id
ResourceGroup string
//Bluemix API timeout
BluemixTimeout time.Duration
//Softlayer end point url
SoftLayerEndpointURL string
//Softlayer API timeout
SoftLayerTimeout time.Duration
// Softlayer User Name
SoftLayerUserName string
// Softlayer API Key
SoftLayerAPIKey string
//Retry Count for API calls
//Unexposed in the schema at this point as they are used only during session creation for a few calls
//When sdk implements it we an expose them for expected behaviour
//https://github.com/softlayer/softlayer-go/issues/41
RetryCount int
//Constant Retry Delay for API calls
RetryDelay time.Duration
// FunctionNameSpace ...
FunctionNameSpace string
//Riaas End point
RiaasEndPoint string
//Generation
Generation int
//IAM Token
IAMToken string
//TrustedProfileToken Token
IAMTrustedProfileID string
//IAM Refresh Token
IAMRefreshToken string
// Zone
Zone string
Visibility string
EndpointsFile string
}
Config stores user provider input
func (*Config) ClientSession ¶
ClientSession configures and returns a fully initialized ClientSession
type Session ¶
type Session struct {
// SoftLayerSesssion is the the SoftLayer session used to connect to the SoftLayer API
SoftLayerSession *slsession.Session
// BluemixSession is the the Bluemix session used to connect to the Bluemix API
BluemixSession *bxsession.Session
}
Session stores the information required for communication with the SoftLayer and Bluemix API
Click to show internal directories.
Click to hide internal directories.