docker

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 21 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
	ShaPinning bool `env:"INPUT_SHA_PINNING" envDefault:"false"`
}

func (*Environment) NewUpdater

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

type ImagePinner added in v0.0.9

type ImagePinner interface {
	// Pin normalizes Docker image name to sha256 pinned image.
	Pin(ctx context.Context, image string) (string, error)
	Unpin(ctx context.Context, image, hash string) (string, error)
}

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 RemoteRegistries added in v0.0.9

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

func NewRemoteRegistries added in v0.0.9

func NewRemoteRegistries() *RemoteRegistries

func (*RemoteRegistries) Pin added in v0.0.9

func (r *RemoteRegistries) Pin(ctx context.Context, image string) (string, error)

func (*RemoteRegistries) Tags added in v0.0.9

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

func (*RemoteRegistries) Unpin added in v0.0.9

func (r *RemoteRegistries) Unpin(ctx context.Context, image, hash string) (string, error)

type TagLister added in v0.0.6

type TagLister interface {
	// Tags returns potential version tags given a updater.Dependency path
	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(ctx 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)

func (*Updater) Name added in v0.0.8

func (u *Updater) Name() string

type UpdaterOpt added in v0.0.6

type UpdaterOpt func(*Updater)

func WithImagePinner added in v0.0.9

func WithImagePinner(pinner ImagePinner) UpdaterOpt

func WithShaPinning added in v0.0.9

func WithShaPinning(shaPinning bool) UpdaterOpt

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