Documentation ¶
Index ¶
- Constants
- Variables
- func BuildInfo() string
- func IsCloudInitFinished(log string) bool
- type Address
- type ExtCreateOpts
- type InstanceGroup
- func (g *InstanceGroup) ConnectInfo(ctx context.Context, instanceID string) (provider.ConnectInfo, error)
- func (g *InstanceGroup) Decrease(ctx context.Context, instances []string) (succeeded []string, err error)
- func (g *InstanceGroup) Increase(ctx context.Context, delta int) (succeeded int, err error)
- func (g *InstanceGroup) Init(ctx context.Context, log hclog.Logger, settings provider.Settings) (provider.ProviderInfo, error)
- func (g *InstanceGroup) Shutdown(ctx context.Context) error
- func (g *InstanceGroup) Update(ctx context.Context, update func(instance string, state provider.State)) error
Constants ¶
View Source
const MetadataKey = "fleeting-cluster"
Variables ¶
Functions ¶
func IsCloudInitFinished ¶
Types ¶
type ExtCreateOpts ¶
type ExtCreateOpts struct { servers.CreateOpts // fields absent in gophercloud Description string `json:"description,omitempty"` KeyName string `json:"key_name,omitempty"` // annotation overrides Networks []servers.Network `json:"networks,omitempty"` SecurityGroups []string `json:"security_groups,omitempty"` UserData string `json:"user_data,omitempty"` SchedulerHints *servers.SchedulerHints `json:"scheduler_hints,omitempty"` }
ExtCreateOpts extended version of servers.CreateOpts nolint:revive
func (ExtCreateOpts) ToServerCreateMap ¶
func (opts ExtCreateOpts) ToServerCreateMap() (map[string]interface{}, error)
ToServerCreateMap for extended opts
type InstanceGroup ¶
type InstanceGroup struct { Cloud string `json:"cloud"` // cloud to use CloudsConfig string `json:"clouds_config"` // optional: path to clouds.yaml Name string `json:"name"` // name of the cluster ServerSpec ExtCreateOpts `json:"server_spec"` // instance creation spec BootTimeS string `json:"boot_time"` // optional: wait some time before report machine as available BootTime time.Duration // contains filtered or unexported fields }
func (*InstanceGroup) ConnectInfo ¶
func (g *InstanceGroup) ConnectInfo(ctx context.Context, instanceID string) (provider.ConnectInfo, error)
func (*InstanceGroup) Init ¶
func (g *InstanceGroup) Init(ctx context.Context, log hclog.Logger, settings provider.Settings) (provider.ProviderInfo, error)
Click to show internal directories.
Click to hide internal directories.