container

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterDeploymentFromDeployment

func ClusterDeploymentFromDeployment(deployment *types.Deployment) (builder.IClusterDeployment, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *config.CandidateCfg, secret *jwt.HMACSHA) (*Client, error)

func (*Client) AddDomain

func (c *Client) AddDomain(ctx context.Context, id types.DeploymentID, cert *types.Certificate) error

func (*Client) CloseDeployment

func (c *Client) CloseDeployment(ctx context.Context, deployment *types.Deployment) error

func (*Client) CreateDeployment

func (c *Client) CreateDeployment(ctx context.Context, deployment *types.Deployment) error

func (*Client) DeleteDomain

func (c *Client) DeleteDomain(ctx context.Context, id types.DeploymentID, hostname string) error

func (*Client) Exec

func (c *Client) Exec(ctx context.Context, id types.DeploymentID, serviceName string, stdin io.Reader, stdout, stderr io.Writer, cmd []string, tty bool, terminalSizeQueue remotecommand.TerminalSizeQueue) (types.ExecResult, error)

func (*Client) GetDeployment

func (c *Client) GetDeployment(ctx context.Context, id types.DeploymentID) (*types.Deployment, error)

func (*Client) GetDomains

func (c *Client) GetDomains(ctx context.Context, id types.DeploymentID) ([]*types.DeploymentDomain, error)

func (*Client) GetEvents

func (c *Client) GetEvents(ctx context.Context, id types.DeploymentID) ([]*types.ServiceEvent, error)

func (*Client) GetIngress

func (c *Client) GetIngress(ctx context.Context, id types.DeploymentID) (*types.Ingress, error)

func (*Client) GetLeaseAccessToken

func (c *Client) GetLeaseAccessToken(ctx context.Context, id types.DeploymentID, userId string) (string, error)

func (*Client) GetLogs

func (c *Client) GetLogs(ctx context.Context, id types.DeploymentID) ([]*types.ServiceLog, error)

func (*Client) GetNodeResources

func (c *Client) GetNodeResources(ctx context.Context, nodeName string) (*types.ResourcesStatistics, error)

func (*Client) GetStatistics

func (c *Client) GetStatistics(ctx context.Context) (*types.ResourcesStatistics, error)

func (*Client) GetSufficientResourceNodes

func (c *Client) GetSufficientResourceNodes(ctx context.Context, reqResources *types.ComputeResources) ([]*types.SufficientResourceNode, error)

func (*Client) UpdateDeployment

func (c *Client) UpdateDeployment(ctx context.Context, deployment *types.Deployment) error

func (*Client) UpdateIngress

func (c *Client) UpdateIngress(ctx context.Context, id types.DeploymentID, annotations map[string]string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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