Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFreeImageres ¶
func NewFreeImageres(reg *registry.Registry) map[string]FreeImager
NewFreeImageres creates a list of new FreeImager.
Types ¶
type Cleaner ¶
type Cleaner struct {
// contains filtered or unexported fields
}
Cleaner is responsible for cleaning up the free images in registry.
func NewRegistryCleaner ¶
NewRegistryCleaner creates a new Cleaner.
func (*Cleaner) Cleanup ¶
func (r *Cleaner) Cleanup()
Cleanup cleans up the free image in the registry.
func (*Cleaner) DeleteImages ¶
DeleteImages deletes images.
func (*Cleaner) ListFreeImages ¶
ListFreeImages return a list of free images needed to be cleaned up.
type FreeComponent ¶
type FreeComponent struct {
// contains filtered or unexported fields
}
FreeComponent is resposible for listing the free images belong to free components.
func NewFreeComponent ¶
func NewFreeComponent(reg *registry.Registry) *FreeComponent
NewFreeComponent creates a new FreeComponent.
func (*FreeComponent) List ¶
func (f *FreeComponent) List() ([]*FreeImage, error)
List return a list of free images belong to free components.
type FreeImageType ¶
type FreeImageType string
FreeImageType is the type of FreeImage
var ( FreeImageTypeFreeComponent FreeImageType = "FreeComponent" FreeImageTypeFreeVersion FreeImageType = "FreeVersion" )
FreeImageType -
type FreeImager ¶
FreeImager is resposible for listing the free images.
type FreeVersion ¶
type FreeVersion struct {
// contains filtered or unexported fields
}
FreeVersion is resposible for listing the free images belong to free component versions.
func NewFreeVersion ¶
func NewFreeVersion(reg *registry.Registry) *FreeVersion
NewFreeVersion creates a free version.
func (*FreeVersion) List ¶
func (f *FreeVersion) List() ([]*FreeImage, error)
List return a list of free images belong to free component versions.