ibmcloud

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 GetHeaders(serviceName string, serviceVersion string, operationId string) map[string]string

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

func NewProvider

func NewProvider(config *Config) (provider.Provider, error)

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

func (clusterApi *ClusterV2) GetClusterTypeSecurityGroupsWithContext(ctx context.Context, clusterID string) (result []securityGroup, response *core.DetailedResponse, err error)

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
}

func (Config) Redact

func (c Config) Redact() Config

type Image

type Image struct {
	ID   string
	Arch string
	OS   string
}

type Images

type Images []Image

func (*Images) Set

func (i *Images) Set(value string) error

func (*Images) String

func (i *Images) String() string

type Manager

type Manager struct{}

func (*Manager) GetConfig

func (_ *Manager) GetConfig() (config *Config)

func (*Manager) LoadEnv

func (_ *Manager) LoadEnv()

func (*Manager) NewProvider

func (_ *Manager) NewProvider() (provider.Provider, error)

func (*Manager) ParseCmd

func (_ *Manager) ParseCmd(flags *flag.FlagSet)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL