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

type DockClient struct {
	pb.ProvisionDockClient
	pb.AttachDockClient
	pb.FileShareDockClient
	*grpc.ClientConn
}

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

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

Source Files