Documentation ¶
Index ¶
- func NextTag(curTag, constraint, tagPrefix string, tags []string) (string, error)
- func NextVersion(curVer semver.Version, constraintRange semver.Range, tagPrefix string, ...) semver.Version
- func TagsToVersions(tags []string, tagPrefix string, skipInvalid bool) (versions semver.Versions, err error)
- type Client
- type Image
- type ImageUpgradeEvaluationResponse
- type RemoteEvaluationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NextVersion ¶
Types ¶
type Client ¶
type Client struct {
Server string
}
func (*Client) EvalUpgrade ¶
func (c *Client) EvalUpgrade(image, constraint, tagPrefix string) (RemoteEvaluationResponse, error)
type Image ¶
type Image struct { registry.Image TagVersion semver.Version TagVersions semver.Versions TagPrefix string }
Image is an extended struct that represents an Image
func (*Image) EvalUpgrade ¶
func (image *Image) EvalUpgrade(constraint string) (ImageUpgradeEvaluationResponse, error)
func (*Image) FetchTags ¶
FetchTags queries the registry that holds the image to assess the tags it has. The tags are automatically converted to semver.Version objects and stored into the `TagVersions` field. Note well: invalid tags are going to be ignored.
func (*Image) FullNameWithoutTag ¶
type RemoteEvaluationResponse ¶
type RemoteEvaluationResponse struct { Pending bool Response ImageUpgradeEvaluationResponse // contains filtered or unexported fields }
func (*RemoteEvaluationResponse) IsReady ¶
func (re *RemoteEvaluationResponse) IsReady() (bool, error)
Click to show internal directories.
Click to hide internal directories.