ibmcloud

package
v0.9.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

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

Types

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
	PrimarySecurityGroupID   string
	SecondarySubnetID        string
	SecondarySecurityGroupID string
	KeyID                    string
	VpcID                    string
	InstanceProfiles         instanceProfiles
	InstanceProfileSpecList  []provider.InstanceTypeSpec
}

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