Documentation ¶
Index ¶
- func NewSnapshotter(cache *cache.RemoteSnapshotterCache) snapshots.Snapshotter
- type Snapshotter
- func (s *Snapshotter) Cleanup(ctx context.Context) error
- func (s *Snapshotter) Close() error
- func (s *Snapshotter) Commit(ctx context.Context, name string, key string, opts ...snapshots.Opt) error
- func (s *Snapshotter) Mounts(ctx context.Context, key string) ([]mount.Mount, error)
- func (s *Snapshotter) Prepare(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
- func (s *Snapshotter) Remove(ctx context.Context, key string) error
- func (s *Snapshotter) Stat(ctx context.Context, key string) (snapshots.Info, error)
- func (s *Snapshotter) Update(ctx context.Context, info snapshots.Info, fieldpaths ...string) (snapshots.Info, error)
- func (s *Snapshotter) Usage(ctx context.Context, key string) (snapshots.Usage, error)
- func (s *Snapshotter) View(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
- func (s *Snapshotter) Walk(ctx context.Context, fn snapshots.WalkFunc, filters ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSnapshotter ¶
func NewSnapshotter(cache *cache.RemoteSnapshotterCache) snapshots.Snapshotter
NewSnapshotter creates instance of Snapshotter with provided cache.
Types ¶
type Snapshotter ¶
type Snapshotter struct {
// contains filtered or unexported fields
}
Snapshotter routes snapshotter requests to their destined remote snapshotter via their snapshotter namespace.
Remote snapshotters are cached for subsequent snapshotter requests.
func (*Snapshotter) Cleanup ¶
func (s *Snapshotter) Cleanup(ctx context.Context) error
Cleanup proxies remote snapshotter cleanup request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) Close ¶
func (s *Snapshotter) Close() error
Close calls close on all cached remote snapshotters.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) Commit ¶
func (s *Snapshotter) Commit(ctx context.Context, name string, key string, opts ...snapshots.Opt) error
Commit proxies remote snapshotter commit request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) Mounts ¶
Mounts proxies remote snapshotter mounts request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) Prepare ¶
func (s *Snapshotter) Prepare(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
Prepare proxies remote snapshotter prepare request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) Remove ¶
func (s *Snapshotter) Remove(ctx context.Context, key string) error
Remove proxies remote snapshotter remove request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) Stat ¶
Stat proxies remote snapshotter stat request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) Update ¶
func (s *Snapshotter) Update(ctx context.Context, info snapshots.Info, fieldpaths ...string) (snapshots.Info, error)
Update proxies remote snapshotter update request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) Usage ¶
Usage proxies remote snapshotter usage request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) View ¶
func (s *Snapshotter) View(ctx context.Context, key string, parent string, opts ...snapshots.Opt) ([]mount.Mount, error)
View proxies remote snapshotter view request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go
func (*Snapshotter) Walk ¶
Walk proxies remote snapshotter walk request.
See https://github.com/containerd/containerd/blob/v1.6.4/snapshots/snapshotter.go