grpc

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcCli

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

GrpcCli connect to the remote server

func NewCli

func NewCli(conf config.GRPCConfig) (*GrpcCli, error)

NewCli returns the GrpcCli

func (GrpcCli) Close

func (gCli GrpcCli) Close() error

func (GrpcCli) Exec

func (gCli GrpcCli) Exec(ctx context.Context, container types.Container) (types.TTY, error)

func (GrpcCli) GetInfo

func (gCli GrpcCli) GetInfo(ctx context.Context, cid string) types.Container

func (GrpcCli) List

func (gCli GrpcCli) List(ctx context.Context) []types.Container

func (GrpcCli) Logs added in v0.1.7

func (gCli GrpcCli) Logs(ctx context.Context, opts types.LogOptions) (io.ReadCloser, error)

func (GrpcCli) Restart

func (gCli GrpcCli) Restart(ctx context.Context, containerID string) error

func (GrpcCli) Start

func (gCli GrpcCli) Start(ctx context.Context, containerID string) error

func (GrpcCli) Stop

func (gCli GrpcCli) Stop(ctx context.Context, containerID string) error

Jump to

Keyboard shortcuts

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