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)
- func (di *DockerImage) Validate() 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)
func (*DockerImage) Validate ¶
func (di *DockerImage) Validate() error
Validate validates the object and returns an error (with all the failed validation messages) if it is not valid
type Spec ¶
type Spec struct { // Architecture specifies the container image architecture such as `amd64` Architecture string `yaml:",omitempty"` // Image specifies the container image such as `updatecli/updatecli` Image string `yaml:",omitempty"` // Tag specifies the container image tag such as `latest` Tag string `yaml:",omitempty"` // Username specifies the container registry username to use for authentication. Not compatible with token Username string `yaml:",omitempty"` // Password specifies the container registry password to use for authentication. Not compatible with token Password string `yaml:",omitempty"` // Token specifies the container registry token to use for authentication. Not compatible with username/password Token string `yaml:",omitempty"` }
Spec defines a specification for a "dockerimage" resource parsed from an updatecli manifest file