Documentation ¶
Index ¶
- func DeconstructCommit(commit string) (string, int, string)
- func DeconstructTag(tag string) (date, commit, variant string)
- type Client
- func (cli *Client) AddToCache(image, newTag string)
- func (cli *Client) FindLatestTag(imageHost, imageName, currentTag string) (string, error)
- func (cli *Client) GetReplacements() map[string]string
- func (cli *Client) TagExists(imageHost, imageName, currentTag string) (bool, error)
- func (cli *Client) UpdateFile(tagPicker func(imageHost, imageName, currentTag string) (string, error), ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeconstructCommit ¶
Examples:
v0.0.30-14-gdeadbeef => (v0.0.30 14 deadbeef) v0.0.30 => (v0.0.30 0 "") deadbeef => ("", 0, deadbeef)
See man git describe.
func DeconstructTag ¶
DeconstructTag separates the tag into its vDATE-COMMIT-VARIANT components
COMMIT may be in the form vTAG-NEW-gCOMMIT, use PureCommit to further process this down to COMMIT.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddToCache ¶
AddToCache keeps track of changed tags
func (*Client) FindLatestTag ¶
FindLatestTag returns the latest valid tag for the given image.
func (*Client) GetReplacements ¶
GetReplacements returns the tag replacements that have been made.
Click to show internal directories.
Click to hide internal directories.