Documentation
¶
Index ¶
- Constants
- Variables
- func GetComponentInfo() *core.ProblemComponent
- func GetHeaders(serviceName string, serviceVersion string, operationId string) map[string]string
- func GetNewXRequestID() string
- func GetSystemInfo() string
- func GetUserAgentInfo() string
- func NewProvider(config *Config) (provider.Provider, error)
- type ClusterOptions
- type ClusterV2
- func (clusterApi *ClusterV2) GetClusterTypeSecurityGroups(clusterID string) (result []securityGroup, response *core.DetailedResponse, err error)
- func (clusterApi *ClusterV2) GetClusterTypeSecurityGroupsWithContext(ctx context.Context, clusterID string) (result []securityGroup, response *core.DetailedResponse, err error)
- type Config
- type Image
- type Images
- type Manager
Constants ¶
View Source
const ( HEADER_NAME_USER_AGENT = "User-Agent" NAME = "cloud-api-adaptor-ibm" X_REQUEST_ID = "X-Request-Id" VERSION = "0.0.1" )
View Source
const DefaultServiceURL = "https://containers.cloud.ibm.com/global"
Variables ¶
View Source
var UserAgent string = fmt.Sprintf("%s-%s %s", NAME, VERSION, GetSystemInfo())
Functions ¶
func GetComponentInfo ¶ added in v0.18.0
func GetComponentInfo() *core.ProblemComponent
func GetHeaders ¶ added in v0.18.0
func GetNewXRequestID ¶ added in v0.18.0
func GetNewXRequestID() string
func GetSystemInfo ¶ added in v0.18.0
func GetSystemInfo() string
func GetUserAgentInfo ¶ added in v0.18.0
func GetUserAgentInfo() string
Types ¶
type ClusterOptions ¶ added in v0.18.0
type ClusterOptions struct {
Authenticator core.Authenticator
}
type ClusterV2 ¶ added in v0.18.0
type ClusterV2 struct {
Service *core.BaseService
}
func NewClusterV2Service ¶ added in v0.18.0
func NewClusterV2Service(options *ClusterOptions) (service *ClusterV2, err error)
func (*ClusterV2) GetClusterTypeSecurityGroups ¶ added in v0.18.0
func (clusterApi *ClusterV2) GetClusterTypeSecurityGroups(clusterID string) (result []securityGroup, response *core.DetailedResponse, err error)
func (*ClusterV2) GetClusterTypeSecurityGroupsWithContext ¶ added in v0.18.0
type Config ¶
type Config struct {
ApiKey string
IAMProfileID string
CRTokenFileName string
IamServiceURL string
VpcServiceURL string
ResourceGroupID string
ProfileName string
ZoneName string
Images Images
PrimarySubnetID string
SecurityGroupIds securityGroupIds
SecondarySubnetID string
SecondarySecurityGroupID string
KeyID string
VpcID string
InstanceProfiles instanceProfiles
InstanceProfileSpecList []provider.InstanceTypeSpec
DisableCVM bool
ClusterID string
Tags tags
DedicatedHostIDs dedicatedHostIDs
DedicatedHostGroupIDs dedicatedHostGroupIDs
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.