client

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloudService

func GetCloudService(ctx context.Context, backendType string) (cloud.Service, error)

GetCloudService returns a backend CloudService (typically login, create context)

Types

type Client

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

Client is a multi-backend client

func New

func New(ctx context.Context) (*Client, error)

New returns a backend client associated with current context

func NewClient added in v0.1.18

func NewClient(backendType string, service backend.Service) Client

NewClient returns new client

func (*Client) ComposeService

func (c *Client) ComposeService() api.Service

ComposeService returns the backend service for the current context

func (*Client) ContainerService

func (c *Client) ContainerService() containers.Service

ContainerService returns the backend service for the current context

func (*Client) ContextType added in v0.1.18

func (c *Client) ContextType() string

ContextType the context type associated with backend

func (*Client) ResourceService added in v0.1.23

func (c *Client) ResourceService() resources.Service

ResourceService returns the backend service for the current context

func (*Client) SecretsService

func (c *Client) SecretsService() secrets.Service

SecretsService returns the backend service for the current context

func (*Client) VolumeService

func (c *Client) VolumeService() volumes.Service

VolumeService returns the backend service for the current context

Jump to

Keyboard shortcuts

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