action

package
v0.0.0-...-b04963e Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameSync                  = "sync"
	SkipSyncBodySumNum uint32 = 1
)
View Source
const (
	NameCheck = "check"
)
View Source
const (
	NameSum = "sum"
)

Variables

This section is empty.

Functions

func Execute

func Execute(a Interface) error

Types

type CheckOptions

type CheckOptions struct {
	*gcrc.Options

	Db       string
	CheckSum string
}

type CloseFunc

type CloseFunc func() error

type Image

type Image struct {
	Repo string // for extra images
	Ns   string // for extra images
	Name string // basename
	Tag  string
}

func (*Image) Key

func (i *Image) Key() string

func (*Image) String

func (i *Image) String() string

type Images

type Images []*Image

func (Images) Len

func (is Images) Len() int

func (Images) Less

func (is Images) Less(i, j int) bool

func (Images) Swap

func (is Images) Swap(i, j int)

type Interface

type Interface interface {
	Name() string
	PreRun() error
	Run() error
	PostRun() error
	Ctx() context.Context
	Close() error
}

func NewCheckAction

func NewCheckAction(opts *CheckOptions) Interface

func NewSumAction

func NewSumAction(dbUri string) Interface

func NewSyncAction

func NewSyncAction(opts *SyncOptions) Interface

type SyncOptions

type SyncOptions struct {
	*gcrc.Options
	Db           string
	PushToRepo   string
	PushToNS     string
	ImageSetFile string
	Limit        int
	QueryLimit   int
	CmdTimeout   time.Duration
}

Jump to

Keyboard shortcuts

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