docker

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkDockerfiles

func WalkDockerfiles(root string, filter func(string) bool, walkFunc func(path string, parsed *parser.Result) error) error

Types

type Environment

type Environment struct {
	updateaction.Environment
}

func (*Environment) NewUpdater

func (c *Environment) NewUpdater(root string) updater.Updater

type Interpolation

type Interpolation struct {
	Vars map[string]string
	// contains filtered or unexported fields
}

Interpolation attempts to interpolate a variable Dockerfile string Easily fooled by duplicate ARGs

func NewInterpolation

func NewInterpolation(parsed *parser.Result) *Interpolation

func (*Interpolation) Interpolate

func (i *Interpolation) Interpolate(s string) string

type RemoteTagLister added in v0.0.6

type RemoteTagLister struct {
	// contains filtered or unexported fields
}

func NewRemoteTagLister added in v0.0.6

func NewRemoteTagLister() *RemoteTagLister

func (*RemoteTagLister) Tags added in v0.0.6

func (r *RemoteTagLister) Tags(ctx context.Context, image string) ([]string, error)

type TagLister added in v0.0.6

type TagLister interface {
	Tags(ctx context.Context, path string) ([]string, error)
}

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

func NewUpdater

func NewUpdater(root string, opts ...UpdaterOpt) *Updater

func (*Updater) ApplyUpdate

func (u *Updater) ApplyUpdate(_ context.Context, update updater.Update) error

func (*Updater) Check

func (u *Updater) Check(ctx context.Context, dependency updater.Dependency, filter func(string) bool) (*updater.Update, error)

func (*Updater) Dependencies

func (u *Updater) Dependencies(_ context.Context) ([]updater.Dependency, error)

type UpdaterOpt added in v0.0.6

type UpdaterOpt func(*Updater)

func WithTagsLister added in v0.0.6

func WithTagsLister(tags TagLister) UpdaterOpt

Jump to

Keyboard shortcuts

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