client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 13 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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() compose.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