Versions in this module Expand all Collapse all v0 v0.1.0 Apr 5, 2022 Changes in this version + const BaseURL + var BG = color.New(color.FgGreen, color.Bold).SprintFunc() + var BR = color.New(color.FgRed, color.Bold).SprintFunc() + var BW = color.New(color.FgWhite, color.Bold).SprintFunc() + var BY = color.New(color.FgYellow, color.Bold).SprintFunc() + var RepositoriesURL = BaseURL + "repositories" + func GetFlags(flags *pflag.FlagSet) (string, bool, error) + type AuthResponse struct + Token string + type Client struct + AuthToken string + Header http.Header + ORG string + URL string + func NewClient(org, url string) *Client + func (c *Client) DeleteRepository(image string) error + func (c *Client) DescribeRepository(image string) (*Repository, error) + func (c *Client) GetAuthToken() (string, error) + func (c *Client) GetAvgTagsSize(image string) (float64, error) + func (c *Client) GetLatestTag(image string) (string, error) + func (c *Client) GetTagsCount(image string) (int, error) + func (c *Client) ListRepositories() (repos []*Repository, err error) + func (c *Client) ListTags(image string) ([]*Tag, error) + func (c *Client) NewRequest(method, url string, payload io.Reader) (*http.Request, error) + func (c *Client) RenewDockerImage(image string) error + func (c *Client) TruncateTags(image string, truncateInactive bool, regularExpression string) error + type Image struct + Architecture string + Digest string + Features string + LastPulled time.Time + OS string + OSFeatures string + OSVersion string + PastPushed time.Time + Size int + Status string + Variant string + type Repository struct + Affiliation string + CanEdit bool + CollaboratorCount int + Description string + HubUser string + IsAutomated bool + IsMigrated bool + IsPrivate bool + LastUpdated time.Time + Name string + Namespace string + PullCount int + RepositoryType string + StarCount int + Status int + User string + type RepositoryList struct + Count int + Next string + Previous string + Results []*Repository + type Tag struct + Creator int64 + FullSize int + ID int64 + ImageID string + Images []*Image + LastUpdated time.Time + LastUpdater int64 + LastUpdaterUser string + Name string + Repository int64 + TagLastPulled time.Time + TagLstaPushed time.Time + TagStatus string + V2 bool + type TagList struct + Count int + Next string + Previous string + Results []*Tag