shim

package
v1.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0, CC-BY-SA-4.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const RuncRoot = "/run/containerd/runc"

Variables

This section is empty.

Functions

func NewLocal

func NewLocal(s *Service) shimapi.ShimClient

NewLocal returns a shim client implementation for issue commands to a shim

func WithConnect

func WithConnect(ctx context.Context, config Config) (shim.ShimClient, io.Closer, error)

WithConnect connects to an existing shim

func WithLocal

func WithLocal(ctx context.Context, config Config) (shim.ShimClient, io.Closer, error)

WithLocal uses an in process shim

Types

type Client

type Client struct {
	shim.ShimClient
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config Config, opt ClientOpt) (*Client, error)

New returns a new shim client

func (*Client) Close

func (c *Client) Close() error

func (*Client) IsAlive

func (c *Client) IsAlive(ctx context.Context) (bool, error)

func (*Client) KillShim

func (c *Client) KillShim(ctx context.Context) error

KillShim kills the shim forcefully

type ClientOpt

type ClientOpt func(context.Context, Config) (shim.ShimClient, io.Closer, error)

func WithStart

func WithStart(binary, address string, debug bool) ClientOpt

WithStart executes a new shim process

type Config

type Config struct {
	Address   string
	Path      string
	Namespace string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(path, namespace, address string) (*Service, error)

NewService returns a new shim service that can be used via GRPC

func (*Service) Checkpoint

func (*Service) CloseIO

func (*Service) Create

func (*Service) Delete

func (*Service) DeleteProcess

func (*Service) Kill

func (*Service) ListPids

func (*Service) Pause

func (*Service) ResizePty

func (*Service) Resume

func (*Service) ShimInfo

func (*Service) Start

func (*Service) State

func (*Service) Update

Directories

Path Synopsis
Package shim is a generated protocol buffer package.
Package shim is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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