Documentation
¶
Index ¶
- type DockerDigest
- func (d *DockerDigest) Changelog() string
- func (ds *DockerDigest) Condition(source string, scm scm.ScmHandler, resultCondition *result.Condition) error
- func (ds *DockerDigest) Source(workingDir string, resultSource *result.Source) error
- func (ds *DockerDigest) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerDigest ¶
type DockerDigest struct {
// contains filtered or unexported fields
}
DockerDigest defines a resource of kind "dockerDigest" to interact with a docker registry
func New ¶
func New(spec interface{}) (*DockerDigest, error)
New returns a reference to a newly initialized DockerDigest object from a Spec or an error if the provided Spec triggers a validation error.
func (*DockerDigest) Changelog ¶
func (d *DockerDigest) Changelog() string
Changelog returns the changelog for this resource, or an empty string if not supported
func (*DockerDigest) Condition ¶
func (ds *DockerDigest) Condition(source string, scm scm.ScmHandler, resultCondition *result.Condition) error
func (*DockerDigest) Source ¶
func (ds *DockerDigest) Source(workingDir string, resultSource *result.Source) error
Source retrieve docker image tag digest from a registry
func (*DockerDigest) Target ¶
func (ds *DockerDigest) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) error
type Spec ¶
type Spec struct {
// [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"`
// [s] Tag specifies the container image tag such as `latest`
Tag string `yaml:",omitempty"`
// [c] Digest specifies the container image digest such as `@sha256:ce782db15ab5491c6c6178da8431b3db66988ccd11512034946a9667846952a6`
Digest string `yaml:",omitempty"`
docker.InlineKeyChain `yaml:",inline" mapstructure:",squash"`
}
Spec defines a specification for a "dockerdigest" resource parsed from an updatecli manifest file
Click to show internal directories.
Click to hide internal directories.