Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, opts *CreateOptions, args ...string) (*kraftcloudinstances.Instance, error)
Create a KraftCloud instance.
Types ¶
type CreateOptions ¶
type CreateOptions struct { Auth *config.AuthConfig `noattribute:"true"` Client kraftcloud.KraftCloud `noattribute:"true"` Env []string `local:"true" long:"env" short:"e" usage:"Environmental variables"` FQDN string `local:"true" long:"fqdn" short:"d" usage:"The Fully Qualified Domain Name to use for the service"` Memory int64 `local:"true" long:"memory" short:"M" usage:"Specify the amount of memory to allocate"` Metro string `noattribute:"true"` Name string `local:"true" long:"name" short:"n" usage:"Specify the name of the package"` Output string `local:"true" long:"output" short:"o" usage:"Set output format" default:"table"` Ports []string `local:"true" long:"port" short:"p" usage:"Specify the port mapping between external to internal"` Replicas int `local:"true" long:"replicas" short:"R" usage:"Number of replicas of the instance" default:"0"` ServiceGroupNameOrUUID string `local:"true" long:"service-group" short:"g" usage:"Attach this instance to an existing service group"` Start bool `local:"true" long:"start" short:"S" usage:"Immediately start the instance after creation"` SubDomain string `local:"true" long:"subdomain" short:"s" usage:"Set the subdomain to use when creating the service"` Volumes []string `local:"true" long:"volumes" short:"v" usage:"List of volumes to attach instance to"` }
Click to show internal directories.
Click to hide internal directories.