Documentation ¶
Index ¶
- func SetImageProxy(p string)
- type Ctrd
- func (ctrd *Ctrd) Cleanup() error
- func (ctrd *Ctrd) CreateSnapshot(ctx context.Context, id, ref string) error
- func (ctrd *Ctrd) DeleteContainer(ctx context.Context, id string) error
- func (ctrd *Ctrd) GetContainer(ctx context.Context, id string) (containers.Container, error)
- func (ctrd *Ctrd) GetImage(ctx context.Context, imageName string) (containerd.Image, error)
- func (ctrd *Ctrd) GetMounts(ctx context.Context, id string) ([]mount.Mount, error)
- func (ctrd *Ctrd) GetSnapshot(ctx context.Context, id string) (snapshots.Info, error)
- func (ctrd *Ctrd) NewContainer(ctx context.Context, id string) error
- func (ctrd *Ctrd) PullImage(ctx context.Context, imageName string) error
- func (ctrd *Ctrd) RemoveSnapshot(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ctrd ¶
type Ctrd struct {
// contains filtered or unexported fields
}
Ctrd is a wrapper client for containerd grpc client.
func (*Ctrd) CreateSnapshot ¶
CreateSnapshot creates an active snapshot with image's name and id.
func (*Ctrd) DeleteContainer ¶
DeleteContainer deletes a containerd container
func (*Ctrd) GetContainer ¶
GetContainer is to fetch a container info from containerd
func (*Ctrd) GetMounts ¶
GetMounts returns the mounts for the active snapshot transaction identified by key.
func (*Ctrd) GetSnapshot ¶
GetSnapshot returns the snapshot's info by id.
func (*Ctrd) 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.