Documentation ¶
Index ¶
- func ItemInSlice(item string, slice []string) bool
- func PrettySize(size float64) string
- func PurgeOldTags(client *Client, purgeDryRun bool, purgeIncludeRepos, purgeExcludeRepos string)
- func SetupLogging(name string) *logrus.Entry
- func SortedMapKeys(m interface{}) []string
- func UniqueSortedSlice(slice []string) []string
- type Client
- func (c *Client) CountTags(interval int)
- func (c *Client) DeleteTag(repoPath, tag string)
- func (c *Client) GetImageCreated(imageRef string) time.Time
- func (c *Client) GetImageInfo(imageRef string) (ImageInfo, error)
- func (c *Client) GetRepos() []string
- func (c *Client) IsCatalogReady() bool
- func (c *Client) ListTags(repoName string) []string
- func (c *Client) RefreshCatalog()
- func (c *Client) StartBackgroundJobs()
- func (c *Client) SubRepoTagCounts(repoPath string, repos []string) map[string]int
- type ImageInfo
- type TagData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ItemInSlice ¶
ItemInSlice check if item is an element of slice
func PrettySize ¶
PrettySize format bytes in more readable units.
func PurgeOldTags ¶
PurgeOldTags purge old tags.
func SortedMapKeys ¶
func SortedMapKeys(m interface{}) []string
SortedMapKeys sort keys of the map where values can be of any type.
func UniqueSortedSlice ¶
UniqueSortedSlice filter out duplicate items from slice
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client main class.
func (*Client) GetImageCreated ¶
GetImageCreated get image created time
func (*Client) GetImageInfo ¶
GetImageInfo get image info by the reference - tag name or digest sha256.
func (*Client) IsCatalogReady ¶
IsCatalogReady whether catalog is ready for the first time use
func (*Client) RefreshCatalog ¶
func (c *Client) RefreshCatalog()
func (*Client) StartBackgroundJobs ¶
func (c *Client) StartBackgroundJobs()
Click to show internal directories.
Click to hide internal directories.