Documentation ¶
Index ¶
- func Cleanup(pid int) error
- func SetCredential(user string)
- func SetImageProxy(p string)
- func StartContainerd(homeDir string, debug bool) (int, error)
- type Client
- func (cli *Client) CreateSnapshot(ctx context.Context, id, ref string) error
- func (cli *Client) DeleteContainer(ctx context.Context, id string) error
- func (cli *Client) GetContainer(ctx context.Context, id string) (containers.Container, error)
- func (cli *Client) GetImage(ctx context.Context, imageName string) (containerd.Image, error)
- func (cli *Client) GetMounts(ctx context.Context, id string) ([]mount.Mount, error)
- func (cli *Client) GetSnapshot(ctx context.Context, id string) (snapshots.Info, error)
- func (cli *Client) NewContainer(ctx context.Context, id string) error
- func (cli *Client) PullImage(ctx context.Context, ref, snapshotter string, manifestOnly bool) error
- func (cli *Client) RemoveSnapshot(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCredential ¶
func SetCredential(user string)
SetCredential sets user and secret for image registry
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the wrapper of a containerd client.
func NewCtrdClient ¶
NewCtrdClient create a client of containerd
func (*Client) CreateSnapshot ¶
CreateSnapshot creates an active snapshot with image's name and id.
func (*Client) DeleteContainer ¶
DeleteContainer deletes a containerd container
func (*Client) GetContainer ¶
GetContainer is to fetch a container info from containerd
func (*Client) GetMounts ¶
GetMounts returns the mounts for the active snapshot transaction identified by key.
func (*Client) GetSnapshot ¶
GetSnapshot returns the snapshot's info by id.
func (*Client) NewContainer ¶
NewContainer just create a very simple container for migration just load container id to boltdb
Click to show internal directories.
Click to hide internal directories.