docker

package
v0.0.0-...-9135743 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageExists

func ImageExists(ctx context.Context, image Image) (bool, error)

Types

type BuildArgs

type BuildArgs map[string]string

type Builder

type Builder struct {
	Image           Image
	GitRepo         GitRepo
	GitBranch       GitBranch
	BuildArgs       BuildArgs
	SourceDirectory SourceDirectory
}

func (*Builder) Apply

func (b *Builder) Apply(ctx context.Context) error

func (*Builder) Satisfied

func (b *Builder) Satisfied(ctx context.Context) (bool, error)

func (*Builder) Validate

func (b *Builder) Validate(ctx context.Context) error

type CloneBuilder

type CloneBuilder struct {
	SourceImage Image
	TargetImage Image
}

func (*CloneBuilder) Apply

func (c *CloneBuilder) Apply(ctx context.Context) error

func (*CloneBuilder) Satisfied

func (c *CloneBuilder) Satisfied(ctx context.Context) (bool, error)

func (*CloneBuilder) Validate

func (c *CloneBuilder) Validate(ctx context.Context) error

type GitBranch

type GitBranch string

func (GitBranch) String

func (g GitBranch) String() string

func (GitBranch) Validate

func (g GitBranch) Validate(ctx context.Context) error

type GitRepo

type GitRepo string

func (GitRepo) String

func (g GitRepo) String() string

type GolangBuilder

type GolangBuilder struct {
	Image           Image
	Name            Name
	SourceDirectory SourceDirectory
	GitRepo         GitRepo
	Package         Package
}

func (*GolangBuilder) Apply

func (g *GolangBuilder) Apply(ctx context.Context) error

func (*GolangBuilder) Satisfied

func (g *GolangBuilder) Satisfied(ctx context.Context) (bool, error)

func (*GolangBuilder) Validate

func (g *GolangBuilder) Validate(ctx context.Context) error

type Image

type Image struct {
	Repository Repository
	Tag        Tag
}

func (Image) String

func (i Image) String() string

func (Image) Validate

func (i Image) Validate(ctx context.Context) error

type Name

type Name string

func (Name) String

func (n Name) String() string

type Package

type Package string

func (Package) String

func (p Package) String() string

type Registry

type Registry string

func (Registry) String

func (r Registry) String() string

type Repositories

type Repositories []Repository

func (Repositories) String

func (r Repositories) String() string

func (Repositories) Validate

func (r Repositories) Validate(ctx context.Context) error

type Repository

type Repository string

func (Repository) String

func (r Repository) String() string

func (Repository) Validate

func (r Repository) Validate(ctx context.Context) error

type SourceDirectory

type SourceDirectory string

func (SourceDirectory) String

func (s SourceDirectory) String() string

type Tag

type Tag string

func TagWithTime

func TagWithTime(version string, now time.Time) Tag

func (Tag) String

func (t Tag) String() string

func (Tag) Validate

func (t Tag) Validate(ctx context.Context) error

type Uploader

type Uploader struct {
	Image Image
}

func (*Uploader) Apply

func (u *Uploader) Apply(ctx context.Context) error

func (*Uploader) Satisfied

func (u *Uploader) Satisfied(ctx context.Context) (bool, error)

func (*Uploader) Validate

func (u *Uploader) Validate(ctx context.Context) error

Jump to

Keyboard shortcuts

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