Documentation ¶
Index ¶
- Variables
- type DeleteController
- type RegistryManager
- func (r *RegistryManager) DeleteManifest(repository, tag string)
- func (r *RegistryManager) Init()
- func (r *RegistryManager) Manifest(repository, reference string) *schema1.SignedManifest
- func (r *RegistryManager) ManifestCreateTime(s *schema1.SignedManifest) time.Time
- func (r *RegistryManager) Repositories() []string
- func (r *RegistryManager) TagObjs(repository string) []Tag
- func (r *RegistryManager) Tags(repository string) []string
- type Tag
- type Tags
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CfgFile string Manager RegistryManager )
Functions ¶
This section is empty.
Types ¶
type DeleteController ¶
type DeleteController struct { DryRun bool `mapstructure:"dry-run"` IntervalHour time.Duration `mapstructure:"interval-hour"` MixCount int `mapstructure:"mix-count"` Tags struct { Include struct { Keys string `mapstructure:"keys"` Regex string `mapstructure:"regex"` KeysRegex string } `mapstructure:"include"` Exclude struct { Keys string `mapstructure:"keys"` Regex string `mapstructure:"regex"` KeysRegex string } `mapstructure:"exclude"` } `mapstructure:"tags"` }
func (*DeleteController) NeedDeleteTag ¶
func (d *DeleteController) NeedDeleteTag(tag Tag, count *int) bool
type RegistryManager ¶
type RegistryManager struct { Server string `mapstructure:"server"` InsecureSkipTLSVerify bool `mapstructure:"insecure-skip-tls-verify"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` DeleteController DeleteController `mapstructure:"delete-policy"` Client *registry.Registry }
func (*RegistryManager) DeleteManifest ¶
func (r *RegistryManager) DeleteManifest(repository, tag string)
func (*RegistryManager) Manifest ¶
func (r *RegistryManager) Manifest(repository, reference string) *schema1.SignedManifest
获取镜像层信息
func (*RegistryManager) ManifestCreateTime ¶
func (r *RegistryManager) ManifestCreateTime(s *schema1.SignedManifest) time.Time
通过镜像层信息解析镜像创建时间
func (*RegistryManager) TagObjs ¶
func (r *RegistryManager) TagObjs(repository string) []Tag
获取带创建时间了的tag列表
Click to show internal directories.
Click to hide internal directories.