Documentation
¶
Overview ¶
Package ctr represents function and interfaces to communitae with CTR CIPD.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseContainer ¶
type BaseContainer interface { Name() string Exec(ctx context.Context, cmd string) (outstd, errstd string, err error) Close(ctx context.Context) error IsClosed() bool GetClient(ctx context.Context) (*grpc.ClientConn, error) ServiceAddress(ctx context.Context) (string, error) }
BaseContainer describe API to work with containers.
type ServiceInfo ¶
type ServiceInfo interface { Stop(ctx context.Context) error GetNetwork(ctx context.Context, name string) (Network, error) CreateContainer(ctx context.Context, req *api.StartTemplatedContainerRequest) (BaseContainer, error) GetContainer(ctx context.Context, name string) (BaseContainer, error) StopContainer(ctx context.Context, name string) error GenerateContainerImagePath(ctx context.Context, imageName, tag string) (string, error) IsUp() bool }
ServiceInfo describes abilities of CTR service.
Click to show internal directories.
Click to hide internal directories.