Documentation
¶
Index ¶
- type ImagesUsage
- type Service
- func (r *Service) DeleteImage(ctx context.Context, ref string) error
- func (r *Service) GetImage(ctx context.Context, ref string) (client.Image, error)
- func (r *Service) ListImages(ctx context.Context) ([]client.Image, error)
- func (s *Service) Pull(ctx context.Context, ref string, auth registry.RegistriesConfig) (client.Image, error)
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
Click to show internal directories.
Click to hide internal directories.