grpc

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

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) ClientAdd added in v0.2.2

func (gCli GrpcCli) ClientAdd(ctx context.Context, addr string) error

func (GrpcCli) ClientSync added in v0.2.6

func (gCli GrpcCli) ClientSync(ctx context.Context, addrs []string) error

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