images

package
v0.1.3-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImagesUsage

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

func NewImagesUsage

func NewImagesUsage() *ImagesUsage

func (*ImagesUsage) IsUsed

func (iu *ImagesUsage) IsUsed(ref string) bool

func (*ImagesUsage) Lock

func (iu *ImagesUsage) Lock()

func (*ImagesUsage) ReleaseImage

func (iu *ImagesUsage) ReleaseImage(ref string)

ReleaseImage releases the lease on the image with the given ref. Lock should be held when calling this function

func (*ImagesUsage) Unlock

func (iu *ImagesUsage) Unlock()

func (*ImagesUsage) Usage

func (iu *ImagesUsage) Usage() map[string]struct{}

Lock should be held when calling this function

func (*ImagesUsage) UseImage

func (iu *ImagesUsage) UseImage(ref string)

UseImage increments the lease count for the image with the given ref. Lock should be held when calling this function

type Service

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

func NewService

func NewService(ctrd *client.Client, snapshotter string) *Service

func (*Service) DeleteImage

func (r *Service) DeleteImage(ctx context.Context, ref string) error

func (*Service) GetImage

func (r *Service) GetImage(ctx context.Context, ref string) (client.Image, error)

func (*Service) ListImages

func (r *Service) ListImages(ctx context.Context) ([]client.Image, error)

func (*Service) Pull

Jump to

Keyboard shortcuts

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