Documentation
¶
Index ¶
- type DockerImage
- func (di *DockerImage) Changelog() string
- func (di *DockerImage) Condition(source string) (bool, error)
- func (di *DockerImage) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (di *DockerImage) Source(workingDir string) (string, error)
- func (di *DockerImage) Target(source string, dryRun bool) (bool, error)
- func (di *DockerImage) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerImage ¶
type DockerImage struct {
// contains filtered or unexported fields
}
DockerImage defines a resource of type "dockerimage"
func New ¶
func New(spec interface{}) (*DockerImage, error)
New returns a reference to a newly initialized DockerImage object from a dockerimage.Spec or an error if the provided Spec triggers a validation error.
func (*DockerImage) Changelog ¶
func (di *DockerImage) Changelog() string
Changelog returns the changelog for this resource, or an empty string if not supported
func (*DockerImage) Condition ¶
func (di *DockerImage) Condition(source string) (bool, error)
Condition checks if a docker image with a specific tag is published We assume that if we can't retrieve the docker image digest, then it means it doesn't exist.
func (*DockerImage) ConditionFromSCM ¶
func (di *DockerImage) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
ConditionFromSCM returns an error because it's not supported
func (*DockerImage) Target ¶
func (di *DockerImage) Target(source string, dryRun bool) (bool, error)
func (*DockerImage) TargetFromSCM ¶
func (di *DockerImage) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)
type Spec ¶
type Spec struct { // [C] Architectures specifies a list of architectures to check container images for (conditions only) Architectures []string `yaml:",omitempty"` // [S][C] Architecture specifies the container image architecture such as `amd64` Architecture string `yaml:",omitempty"` // [S][C] Image specifies the container image such as `updatecli/updatecli` Image string `yaml:",omitempty"` // [C] Tag specifies the container image tag such as `latest` Tag string `yaml:",omitempty"` docker.InlineKeyChain `yaml:",inline" mapstructure:",squash"` // [S] VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest. VersionFilter version.Filter `yaml:",omitempty"` // [S] TagFiter allows to restrict tags retrieved from a remote registry by using a regular expression. TagFilter string }
Spec defines a specification for a "dockerimage" resource parsed from an updatecli manifest file
func NewDockerImageSpecFromImage ¶ added in v0.39.0
func NewDockerImageSpecFromImage(image, tag string, auths map[string]docker.InlineKeyChain) *Spec
NewDockerImageSpecFromImage return a new docker image specification using an image provided as parameter