client

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	pb.ProvisionDockClient
	pb.AttachDockClient
	pb.FileShareDockClient

	Connect(edp string) error
}

Client interface provides an abstract description about how to interact with gRPC client. Besides some nested methods defined in pb.DockClient, Client also exposes two methods: Connect() and Close(), for which callers can easily open and close gRPC connection.

func NewClient

func NewClient() Client

type DockClient added in v0.6.3

DockClient structure is one implementation of Client interface and will be called in real environment. There would be more other kind of connection in the long run.

func (*DockClient) Connect added in v0.6.3

func (c *DockClient) Connect(edp string) error

Jump to

Keyboard shortcuts

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