dockerurl

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	updateaction.Environment
}

func (*Environment) NewUpdater

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

type Updater

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

func NewUpdater

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

NewUpdater creates a new 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)

type UpdaterOpt

type UpdaterOpt func(*Updater)

func WithRepoClient

func WithRepoClient(rc repoClient) UpdaterOpt

WithRepoClient provides a go-github RepositoriesService or suitable mock.

Jump to

Keyboard shortcuts

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