Documentation ¶
Index ¶
- func FormatSSHKeyToTag(publicKey string) string
- func GetCommands() *core.Commands
- func GetGeneratedCommands() *core.Commands
- type SSHKeyFormat
- type ServerBuilder
- func (sb *ServerBuilder) AddAdminPasswordEncryptionSSHKeyID(adminPasswordEncryptionSSHKeyID *string) *ServerBuilder
- func (sb *ServerBuilder) AddBootType(bootType string) *ServerBuilder
- func (sb *ServerBuilder) AddEnableIPv6(enableIPv6 *bool) *ServerBuilder
- func (sb *ServerBuilder) AddIP(ip string) (*ServerBuilder, error)
- func (sb *ServerBuilder) AddImage(image string) (*ServerBuilder, error)
- func (sb *ServerBuilder) AddOrganizationID(orgID *string) *ServerBuilder
- func (sb *ServerBuilder) AddPlacementGroup(placementGroupID string) *ServerBuilder
- func (sb *ServerBuilder) AddProjectID(projectID *string) *ServerBuilder
- func (sb *ServerBuilder) AddRoutedIPEnabled(routedIPEnabled *bool) *ServerBuilder
- func (sb *ServerBuilder) AddSecurityGroup(securityGroupID string) *ServerBuilder
- func (sb *ServerBuilder) AddTags(tags []string) *ServerBuilder
- func (sb *ServerBuilder) AddVolumes(rootVolume string, additionalVolumes []string) (*ServerBuilder, error)
- func (sb *ServerBuilder) Build() (*instance.CreateServerRequest, *instance.CreateIPRequest)
- func (sb *ServerBuilder) Validate() error
- func (sb *ServerBuilder) ValidateVolumes() error
- type ServerGetRdpPasswordResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSSHKeyToTag ¶ added in v2.28.0
func GetCommands ¶
GetCommands returns instance commands.
This function: - Gets the generated commands - Register handwritten marshalers - Apply handwritten overrides (of Command.Run and Command.View) - Merge handwritten commands
func GetGeneratedCommands ¶
Types ¶
type SSHKeyFormat ¶ added in v2.16.0
type ServerBuilder ¶ added in v2.33.0
type ServerBuilder struct {
// contains filtered or unexported fields
}
func NewServerBuilder ¶ added in v2.33.0
func (*ServerBuilder) AddAdminPasswordEncryptionSSHKeyID ¶ added in v2.33.0
func (sb *ServerBuilder) AddAdminPasswordEncryptionSSHKeyID(adminPasswordEncryptionSSHKeyID *string) *ServerBuilder
func (*ServerBuilder) AddBootType ¶ added in v2.33.0
func (sb *ServerBuilder) AddBootType(bootType string) *ServerBuilder
func (*ServerBuilder) AddEnableIPv6 ¶ added in v2.33.0
func (sb *ServerBuilder) AddEnableIPv6(enableIPv6 *bool) *ServerBuilder
func (*ServerBuilder) AddIP ¶ added in v2.33.0
func (sb *ServerBuilder) AddIP(ip string) (*ServerBuilder, error)
AddIP takes an ip argument and change requests accordingly. ip could be:
- "new"
- A flexible IP UUID
- A flexible IP address
- "dynamic"
- "none"
func (*ServerBuilder) AddImage ¶ added in v2.33.0
func (sb *ServerBuilder) AddImage(image string) (*ServerBuilder, error)
AddImage handle a custom image argument. image could be:
- A local image UUID.
- An image label.
func (*ServerBuilder) AddOrganizationID ¶ added in v2.33.0
func (sb *ServerBuilder) AddOrganizationID(orgID *string) *ServerBuilder
func (*ServerBuilder) AddPlacementGroup ¶ added in v2.33.0
func (sb *ServerBuilder) AddPlacementGroup(placementGroupID string) *ServerBuilder
func (*ServerBuilder) AddProjectID ¶ added in v2.33.0
func (sb *ServerBuilder) AddProjectID(projectID *string) *ServerBuilder
func (*ServerBuilder) AddRoutedIPEnabled ¶ added in v2.33.0
func (sb *ServerBuilder) AddRoutedIPEnabled(routedIPEnabled *bool) *ServerBuilder
func (*ServerBuilder) AddSecurityGroup ¶ added in v2.33.0
func (sb *ServerBuilder) AddSecurityGroup(securityGroupID string) *ServerBuilder
func (*ServerBuilder) AddTags ¶ added in v2.33.0
func (sb *ServerBuilder) AddTags(tags []string) *ServerBuilder
func (*ServerBuilder) AddVolumes ¶ added in v2.33.0
func (sb *ServerBuilder) AddVolumes(rootVolume string, additionalVolumes []string) (*ServerBuilder, error)
AddVolumes build volume templates from arguments.
More format details in buildVolumeTemplate function.
Also add default volumes to server, ex: scratch storage for GPU servers
func (*ServerBuilder) Build ¶ added in v2.33.0
func (sb *ServerBuilder) Build() (*instance.CreateServerRequest, *instance.CreateIPRequest)
func (*ServerBuilder) Validate ¶ added in v2.33.0
func (sb *ServerBuilder) Validate() error
func (*ServerBuilder) ValidateVolumes ¶ added in v2.33.0
func (sb *ServerBuilder) ValidateVolumes() error
Source Files ¶
- args.go
- custom.go
- custom_image.go
- custom_ip.go
- custom_placement_group.go
- custom_privatenics.go
- custom_security_group.go
- custom_server.go
- custom_server_action.go
- custom_server_console.go
- custom_server_create.go
- custom_server_create_builder.go
- custom_server_rdp.go
- custom_server_ssh.go
- custom_server_type.go
- custom_snapshot.go
- custom_ssh_config.go
- custom_ssh_key.go
- custom_user_data.go
- custom_volume.go
- custom_volume_type.go
- custom_web.go
- helpers_types.go
- instance_cli.go
Click to show internal directories.
Click to hide internal directories.