bluemix-go: github.com/IBM-Cloud/bluemix-go Index | Files | Directories

package bluemix

import "github.com/IBM-Cloud/bluemix-go"

Index

Package Files

config.go errors.go version.go

Constants

const (
    //ErrMissingRegionCode ..
    ErrMissingRegionCode = "MissingRegion"

    //ErrInvalidConfigurationCode ..
    ErrInvalidConfigurationCode = "InvalidConfiguration"

    //ErrInsufficientCredentials ..
    ErrInsufficientCredentials = "InsufficientCredentials"
)
const Version = "0.1"

Version is the SDK version

type Config Uses

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 Uses

func (c *Config) Copy(mccpgs ...*Config) *Config

Copy allows the configuration to be overriden or added Typically the endpoints etc

func (*Config) ValidateConfigForService Uses

func (c *Config) ValidateConfigForService(svc ServiceName) error

ValidateConfigForService ...

type ServiceName Uses

type ServiceName string

ServiceName ..

const (
    //AccountService ...
    AccountService ServiceName = ServiceName("account")
    //AccountServicev1 ...
    AccountServicev1 ServiceName = ServiceName("accountv1")
    //CertificateManager ...
    CertificateManager ServiceName = ServiceName("certificate-manager")
    //CisService ...
    CisService ServiceName = ServiceName("cis")
    //ContainerService ...
    ContainerService ServiceName = ServiceName("container")
    //ContainerService ...
    VpcContainerService ServiceName = ServiceName("containerv2")
    //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")
    //IAMUUMServicev2 ...
    IAMUUMServicev2 ServiceName = ServiceName("iamuumv2")
    //IAMPAPServicev2 ...
    IAMPAPServicev2 ServiceName = ServiceName("iampapv2")
    //ICDService ...
    ICDService ServiceName = ServiceName("icd")
    //MccpService ...
    MccpService ServiceName = ServiceName("mccp")
    //resourceManagementService
    ResourceManagementService ServiceName = ServiceName("resource-management")
    //resourceManagementService
    ResourceManagementServicev2 ServiceName = ServiceName("resource-managementv2")
    //resourceControllerService
    ResourceControllerService ServiceName = ServiceName("resource-controller")
    //resourceControllerServicev2
    ResourceControllerServicev2 ServiceName = ServiceName("resource-controllerv2")
    //resourceCatalogService
    ResourceCatalogrService ServiceName = ServiceName("resource-catalog ")
    //UAAService ...
    UAAService ServiceName = ServiceName("uaa")
    //CSEService
    CseService ServiceName = ServiceName("cse")
    //SchematicsService ...
    SchematicsService ServiceName = ServiceName("schematics")
    //UserManagement ...
    UserManagement ServiceName = ServiceName("user-management")
    //HPCService ...
    HPCService ServiceName = ServiceName("hpcs")
)

Directories

PathSynopsis
api/account/accountv1
api/account/accountv2
api/certificatemanager
api/cis/cisv1
api/container/containerv1
api/container/containerv2
api/container/registryv1
api/globalsearch/globalsearchv2
api/globaltagging/globaltaggingv3
api/iam/iamv1
api/iampap/iampapv1
api/iampap/iampapv2
api/iamuum/iamuumv1
api/iamuum/iamuumv2
api/icd/icdv4
api/mccp/mccpv2
api/resource/resourcev1/catalog
api/resource/resourcev1/controller
api/resource/resourcev1/management
api/resource/resourcev2/managementv2
api/schematics
authentication
bmxerror
clientPackage client provides a generic client to be used by all services
crn
endpoints
helpers
http
models
restSending request: client := NewClient() var foo = struct { Bar string }{} var apiErr = struct { Message string }{} resp, err := client.Do(request, &foo, &apiErr)
session
trace
utils

Package bluemix imports 4 packages (graph) and is imported by 46 packages. Updated 2020-09-15. Refresh now. Tools for package owners.