package client
import "github.com/containerd/containerd/runtime/v1/shim/client"
Index ¶
- func AnonDialer(address string, timeout time.Duration) (net.Conn, error)
- func RemoveSocket(address string) error
- 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 AnonDialer ¶
AnonDialer returns a dialer for a socket
NOTE: It is only used for testing.
func RemoveSocket ¶
RemoveSocket removes the socket at the specified address if it exists on the filesystem
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.6.0-beta.3
- Published
- Nov 19, 2021
- Platform
- js/wasm
- Imports
- 23 packages
- Last checked
- 7 minutes ago –
Tools for package owners.