Documentation
¶
Index ¶
- func ConvertNetworking(in *computev1.ComputeInstanceNetworking) *computeapi.InstanceNetworking
- func ConvertUserData(in []byte) *[]byte
- func GenerateNetworking(in *computeapi.InstanceNetworking) (*computev1.ComputeInstanceNetworking, error)
- func GenerateUserData(in *[]byte) []byte
- type Client
- func (c *Client) ConsoleOutput(ctx context.Context, instanceID string, ...) (*regionapi.ConsoleOutputResponse, error)
- func (c *Client) ConsoleSession(ctx context.Context, instanceID string) (*regionapi.ConsoleSessionResponse, error)
- func (c *Client) Create(ctx context.Context, request *computeapi.InstanceCreate) (*computeapi.InstanceRead, error)
- func (c *Client) Delete(ctx context.Context, instanceID string) error
- func (c *Client) Get(ctx context.Context, instanceID string) (*computeapi.InstanceRead, error)
- func (c *Client) GetRaw(ctx context.Context, instanceID string) (*computev1.ComputeInstance, error)
- func (c *Client) List(ctx context.Context, params computeapi.GetApiV2InstancesParams) (computeapi.InstancesRead, error)
- func (c *Client) Reboot(ctx context.Context, instanceID string, ...) error
- func (c *Client) SSHKey(ctx context.Context, instanceID string) (*regionapi.SshKey, error)
- func (c *Client) Snapshot(ctx context.Context, instanceID string, ...) (*regionapi.ImageResponse, error)
- func (c *Client) Start(ctx context.Context, instanceID string) error
- func (c *Client) Stop(ctx context.Context, instanceID string) error
- func (c *Client) Update(ctx context.Context, instanceID string, request *computeapi.InstanceUpdate) (*computeapi.InstanceRead, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertNetworking ¶ added in v1.12.0
func ConvertNetworking(in *computev1.ComputeInstanceNetworking) *computeapi.InstanceNetworking
func ConvertUserData ¶ added in v1.12.0
func GenerateNetworking ¶ added in v1.12.0
func GenerateNetworking(in *computeapi.InstanceNetworking) (*computev1.ComputeInstanceNetworking, error)
func GenerateUserData ¶ added in v1.12.0
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(client client.Client, namespace string, identity identityapi.ClientWithResponsesInterface, region regionapi.ClientWithResponsesInterface) *Client
New creates a new client.
func (*Client) ConsoleOutput ¶
func (c *Client) ConsoleOutput(ctx context.Context, instanceID string, params computeapi.GetApiV2InstancesInstanceIDConsoleoutputParams) (*regionapi.ConsoleOutputResponse, error)
func (*Client) ConsoleSession ¶
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, request *computeapi.InstanceCreate) (*computeapi.InstanceRead, error)
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, instanceID string) (*computeapi.InstanceRead, error)
func (*Client) List ¶
func (c *Client) List(ctx context.Context, params computeapi.GetApiV2InstancesParams) (computeapi.InstancesRead, error)
func (*Client) Reboot ¶
func (c *Client) Reboot(ctx context.Context, instanceID string, params computeapi.PostApiV2InstancesInstanceIDRebootParams) error
func (*Client) Snapshot ¶ added in v1.13.0
func (c *Client) Snapshot(ctx context.Context, instanceID string, params computeapi.InstanceSnapshotCreate) (*regionapi.ImageResponse, error)
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, instanceID string, request *computeapi.InstanceUpdate) (*computeapi.InstanceRead, error)
Click to show internal directories.
Click to hide internal directories.