image

package
v0.0.0-...-85617d8 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deleter

type Deleter func(name.Reference, authn.Authenticator, *log.Logger) error

func NewDockerhubDeleter

func NewDockerhubDeleter(client DockerhubClient) Deleter

func NewDynamicDeleter

func NewDynamicDeleter() Deleter

func NewGenericDeleter

func NewGenericDeleter(delete RawImageDeleteFunc, get ImageDescriptorFunc) Deleter

type DockerhubClient

type DockerhubClient interface {
	GetAuthorizationToken(username, password string) (string, error)
	DeleteRepo(repoName, token string) error
}

type ImageDescriptorFunc

type ImageDescriptorFunc func(ref name.Reference, options ...remote.Option) (*remote.Descriptor, error)

type RawImageDeleteFunc

type RawImageDeleteFunc func(ref name.Reference, options ...remote.Option) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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