docker

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	Image string
	Tag   string
	Token string
}

Docker contains various information to interact with a docker registry

func (*Docker) Check

func (d *Docker) Check() (ok bool, err error)

Check verify if Docker parameters are correctly set

func (*Docker) Condition

func (d *Docker) 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 (*Docker) ConditionFromSCM

func (d *Docker) ConditionFromSCM(source string, scm scm.Scm) (bool, error)

ConditionFromSCM returns an error because it's not supported

func (*Docker) IsDockerRegistry

func (d *Docker) IsDockerRegistry() (bool, error)

IsDockerRegistry validates that we are on docker registry api https://docs.docker.com/registry/spec/api/#api-version-check

func (*Docker) Source

func (d *Docker) Source(workingDir string) (string, error)

Source retrieve docker image tag digest from a registry

type Registry added in v0.0.25

type Registry interface {
	Digest() (string, error)
}

Registry is an interface for every docker registry api

Directories

Path Synopsis
registry

Jump to

Keyboard shortcuts

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