server

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(client client.Client, namespace string) *Client

New creates a new client.

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) Delete

func (c *Client) Delete(ctx context.Context, organizationID, projectID, serverID string) error

Delete a resource.

func (*Client) Get

func (c *Client) Get(ctx context.Context, organizationID, projectID, serverID string) (*openapi.ServerRead, error)

Get a resource.

func (*Client) List

List returns an ordered list of all resources in scope.

func (*Client) Reboot added in v1.7.0

func (c *Client) Reboot(ctx context.Context, organizationID, projectID, identityID, serverID string, hard bool) error

func (*Client) Start added in v1.7.0

func (c *Client) Start(ctx context.Context, organizationID, projectID, identityID, serverID string) error

func (*Client) Stop added in v1.7.0

func (c *Client) Stop(ctx context.Context, organizationID, projectID, identityID, serverID string) error

func (*Client) Update added in v1.2.0

func (c *Client) Update(ctx context.Context, organizationID, projectID, identityID, serverID string, request *openapi.ServerWrite) (*openapi.ServerRead, error)

Update a resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL