Documentation
¶
Index ¶
Constants ¶
View Source
const ( //ErrMissingRegionCode .. ErrMissingRegionCode = "MissingRegion" //ErrInvalidConfigurationCode .. ErrInvalidConfigurationCode = "InvalidConfiguration" //ErrInsufficientCredentials .. ErrInsufficientCredentials = "InsufficientCredentials" )
View Source
const Version = "0.1"
Version is the SDK version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
IBMID string
IBMIDPassword string
BluemixAPIKey string
IAMAccessToken string
IAMRefreshToken string
UAAAccessToken string
UAARefreshToken string
//Region is optional. If region is not provided then endpoint must be provided
Region string
//ResourceGroupID
ResourceGroup string
//Endpoint is optional. If endpoint is not provided then endpoint must be obtained from region via EndpointLocator
Endpoint *string
//TokenProviderEndpoint is optional. If endpoint is not provided then endpoint must be obtained from region via EndpointLocator
TokenProviderEndpoint *string
EndpointLocator endpoints.EndpointLocator
MaxRetries *int
RetryDelay *time.Duration
HTTPTimeout time.Duration
Debug bool
HTTPClient *http.Client
SSLDisable bool
}
Config ...
func (*Config) Copy ¶
Copy allows the configuration to be overriden or added Typically the endpoints etc
func (*Config) ValidateConfigForService ¶
func (c *Config) ValidateConfigForService(svc ServiceName) error
ValidateConfigForService ...
type ServiceName ¶
type ServiceName string
ServiceName ..
const ( //AccountService ... AccountService ServiceName = ServiceName("account") //AccountServicev1 ... AccountServicev1 ServiceName = ServiceName("accountv1") //CisService ... CisService ServiceName = ServiceName("cis") //ContainerService ... ContainerService ServiceName = ServiceName("container") //RegistryService ... ContainerRegistryService ServiceName = ServiceName("container-registry") //GlobalSearchService ... GlobalSearchService ServiceName = ServiceName("global-search") //GlobalTaggingService ... GlobalTaggingService ServiceName = ServiceName("global-tagging") //IAMService ... IAMService ServiceName = ServiceName("iam") //IAMPAPService IAMPAPService ServiceName = ServiceName("iampap") //IAMUUMService ... IAMUUMService ServiceName = ServiceName("iamuum") //ICDService ... ICDService ServiceName = ServiceName("icd") //MccpService ... MccpService ServiceName = ServiceName("mccp") //resourceManagementService ResourceManagementService ServiceName = ServiceName("resource-management") //resourceControllerService ResourceControllerService ServiceName = ServiceName("resource-controller") //resourceCatalogService ResourceCatalogrService ServiceName = ServiceName("resource-catalog ") //UAAService ... UAAService ServiceName = ServiceName("uaa") //CSEService CseService ServiceName = ServiceName("cse") )
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
Package client provides a generic client to be used by all services
|
Package client provides a generic client to be used by all services |
|
examples
|
|
|
account/accountv1
command
|
|
|
account/accountv2
command
|
|
|
cis/cisv1/dns
command
|
|
|
cis/cisv1/glbs
command
|
|
|
cis/cisv1/monitors
command
|
|
|
cis/cisv1/poolcreate
command
|
|
|
cis/cisv1/pooldelete
command
|
|
|
cis/cisv1/settings
command
|
|
|
cis/cisv1/zonecreate
command
|
|
|
cis/cisv1/zonedelete
command
|
|
|
container/alb
command
|
|
|
container/bind_service
command
|
|
|
container/build
command
|
|
|
container/create
command
|
|
|
container/download_config
command
|
|
|
container/versions
command
|
|
|
cse/csev2/serviceendpoint
command
|
|
|
iam/service_id
command
|
|
|
iam/service_policy
command
|
|
|
iam/service_roles
command
|
|
|
iam/user_policy
command
|
|
|
iam_pap/iampapv1/accessPolicy
command
|
|
|
iamuum/access_group
command
|
|
|
iamuum/access_group_member
command
|
|
|
icd/icdv4/cdb
command
|
|
|
icd/icdv4/connection
command
|
|
|
icd/icdv4/scalingGet
command
|
|
|
icd/icdv4/scalingGetDefault
command
|
|
|
icd/icdv4/scalingUpdate
command
|
|
|
icd/icdv4/task
command
|
|
|
icd/icdv4/user
command
|
|
|
icd/icdv4/userpassword
command
|
|
|
icd/icdv4/whitelist
command
|
|
|
mccp/app
command
|
|
|
mccp/organization
command
|
|
|
mccp/orgquota
command
|
|
|
mccp/privatedomain
command
|
|
|
mccp/region
command
|
|
|
mccp/route
command
|
|
|
mccp/service
command
|
|
|
mccp/shareddomain
command
|
|
|
mccp/space
command
|
|
|
mccp/spacequota
command
|
|
|
resource/catalog
command
|
|
|
resource/controller/service-key
command
|
|
|
resource/management/group
command
|
|
|
resource/management/quota
command
|
|
|
Sending request: client := NewClient() var foo = struct { Bar string }{} var apiErr = struct { Message string }{} resp, err := client.Do(request, &foo, &apiErr)
|
Sending request: client := NewClient() var foo = struct { Bar string }{} var apiErr = struct { Message string }{} resp, err := client.Do(request, &foo, &apiErr) |
Click to show internal directories.
Click to hide internal directories.




