Documentation ¶
Index ¶
- func ItemInSlice(item string, slice []string) bool
- func PrettySize(size float64) string
- func PurgeOldTags(client *Client, purgeDryRun bool, purgeTagsKeepDays, purgeTagsKeepCount int)
- func SetupLogging(name string) *logrus.Entry
- func SortedMapKeys(m interface{}) []string
- type Client
- func (c *Client) CountTags(interval uint8)
- func (c *Client) DeleteTag(repo, tag string)
- func (c *Client) ManifestList(repo, tag string) (string, []gjson.Result)
- func (c *Client) Namespaces() []string
- func (c *Client) Repositories(useCache bool) map[string][]string
- func (c *Client) TagCounts() map[string]int
- func (c *Client) TagInfo(repo, tag string, v1only bool) (string, string, string)
- func (c *Client) Tags(repo string) []string
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.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client main class.
func (*Client) ManifestList ¶
ManifestList gets manifest list entries for a tag for the repo.
func (*Client) Repositories ¶
Repositories list repos by namespaces where 'library' is the default one.
Click to show internal directories.
Click to hide internal directories.