dockerdigest

package
v0.35.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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) (bool, error)

func (*DockerDigest) ConditionFromSCM

func (ds *DockerDigest) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)

func (*DockerDigest) Source

func (ds *DockerDigest) Source(workingDir string) (string, error)

Source retrieve docker image tag digest from a registry

func (*DockerDigest) Target

func (ds *DockerDigest) Target(source string, dryRun bool) (bool, error)

func (*DockerDigest) TargetFromSCM

func (ds *DockerDigest) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)

func (*DockerDigest) Validate

func (ds *DockerDigest) 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 "dockerdigest" resource parsed from an updatecli manifest file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL