Documentation
¶
Index ¶
- type Client
- func (c *Client) ConsoleOutputV2(ctx context.Context, serverID string, ...) (*openapi.ConsoleOutputResponse, error)
- func (c *Client) ConsoleSessionV2(ctx context.Context, serverID string) (*openapi.ConsoleSessionResponse, error)
- func (c *Client) Create(ctx context.Context, organizationID, projectID, identityID string, ...) (*openapi.ServerRead, error)
- func (c *Client) CreateConsoleSession(ctx context.Context, organizationID, projectID, identityID, serverID string) (*openapi.ConsoleSessionResponse, error)
- func (c *Client) CreateV2(ctx context.Context, request *openapi.ServerV2Create) (*openapi.ServerV2Read, error)
- func (c *Client) Delete(ctx context.Context, organizationID, projectID, serverID string) error
- func (c *Client) DeleteV2(ctx context.Context, serverID string) error
- func (c *Client) Get(ctx context.Context, organizationID, projectID, serverID string) (*openapi.ServerRead, error)
- func (c *Client) GetConsoleOutput(ctx context.Context, organizationID, projectID, identityID, serverID string, ...) (*openapi.ConsoleOutputResponse, error)
- func (c *Client) GetV2(ctx context.Context, serverID string) (*openapi.ServerV2Read, error)
- func (c *Client) GetV2Raw(ctx context.Context, serverID string) (*regionv1.Server, error)
- func (c *Client) List(ctx context.Context, organizationID string, ...) (openapi.ServersRead, error)
- func (c *Client) ListV2(ctx context.Context, params openapi.GetApiV2ServersParams) (openapi.ServersV2Read, error)
- func (c *Client) Reboot(ctx context.Context, organizationID, projectID, identityID, serverID string, ...) error
- func (c *Client) RebootV2(ctx context.Context, serverID string, hard bool) error
- func (c *Client) SSHKey(ctx context.Context, serverID string) (*openapi.SshKey, error)
- func (c *Client) Start(ctx context.Context, organizationID, projectID, identityID, serverID string) error
- func (c *Client) StartV2(ctx context.Context, serverID string) error
- func (c *Client) Stop(ctx context.Context, organizationID, projectID, identityID, serverID string) error
- func (c *Client) StopV2(ctx context.Context, serverID string) error
- func (c *Client) Update(ctx context.Context, organizationID, projectID, identityID, serverID string, ...) (*openapi.ServerRead, error)
- func (c *Client) UpdateV2(ctx context.Context, serverID string, request *openapi.ServerV2Update) (*openapi.ServerV2Read, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a restful API for identities.
func (*Client) ConsoleOutputV2 ¶ added in v1.11.0
func (c *Client) ConsoleOutputV2(ctx context.Context, serverID string, params openapi.GetApiV2ServersServerIDConsoleoutputParams) (*openapi.ConsoleOutputResponse, error)
func (*Client) ConsoleSessionV2 ¶ added in v1.11.0
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, organizationID, projectID, identityID string, request *openapi.ServerWrite) (*openapi.ServerRead, error)
Create instantiates a new resource.
func (*Client) CreateConsoleSession ¶ added in v1.8.0
func (*Client) CreateV2 ¶ added in v1.11.0
func (c *Client) CreateV2(ctx context.Context, request *openapi.ServerV2Create) (*openapi.ServerV2Read, error)
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, organizationID, projectID, serverID string) (*openapi.ServerRead, error)
Get a resource.
func (*Client) GetConsoleOutput ¶ added in v1.8.0
func (c *Client) GetConsoleOutput(ctx context.Context, organizationID, projectID, identityID, serverID string, params openapi.GetApiV1OrganizationsOrganizationIDProjectsProjectIDIdentitiesIdentityIDServersServerIDConsoleoutputParams) (*openapi.ConsoleOutputResponse, error)
func (*Client) List ¶
func (c *Client) List(ctx context.Context, organizationID string, params openapi.GetApiV1OrganizationsOrganizationIDServersParams) (openapi.ServersRead, error)
List returns an ordered list of all resources in scope.
func (*Client) ListV2 ¶ added in v1.11.0
func (c *Client) ListV2(ctx context.Context, params openapi.GetApiV2ServersParams) (openapi.ServersV2Read, error)
Click to show internal directories.
Click to hide internal directories.