package client
import "github.com/containerd/containerd/runtime/v1/shim/client"
Index ¶
- func WithLocal(publisher events.Publisher) func(context.Context, shim.Config) (shimapi.ShimService, io.Closer, error)
- type Client
- func New(ctx context.Context, config shim.Config, opt Opt) (*Client, error)
- func (c *Client) Close() error
- func (c *Client) IsAlive(ctx context.Context) (bool, error)
- func (c *Client) KillShim(ctx context.Context) error
- func (c *Client) StopShim(ctx context.Context) error
- type Opt
Functions ¶
func WithLocal ¶
func WithLocal(publisher events.Publisher) func(context.Context, shim.Config) (shimapi.ShimService, io.Closer, error)
WithLocal uses an in process shim
Types ¶
type Client ¶
type Client struct { shimapi.ShimService // contains filtered or unexported fields }
Client is a shim client containing the connection to a shim
func New ¶
New returns a new shim client
func (*Client) Close ¶
Close the client connection
func (*Client) IsAlive ¶
IsAlive returns true if the shim can be contacted. NOTE: a negative answer doesn't mean that the process is gone.
func (*Client) KillShim ¶
KillShim kills the shim forcefully and wait for the process to disappear
func (*Client) StopShim ¶
StopShim signals the shim to exit and wait for the process to disappear
type Opt ¶
Opt is an option for a shim client configuration
func WithConnect ¶
WithConnect connects to an existing shim
func WithStart ¶
WithStart executes a new shim process
Source Files ¶
- Version
- v1.3.0-beta.2
- Published
- Aug 20, 2019
- Platform
- linux/amd64
- Imports
- 24 packages
- Last checked
- 11 minutes ago –
Tools for package owners.