prepare

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasePrepare

type BasePrepare struct {
	ModuleCache   *cache.Cache
	PipelineCache *cache.Cache
}

func (*BasePrepare) AutoAssert

func (b *BasePrepare) AutoAssert(runtime connector.Runtime)

func (*BasePrepare) Init

func (b *BasePrepare) Init(moduleCache *cache.Cache, pipelineCache *cache.Cache)

func (*BasePrepare) PreCheck

func (b *BasePrepare) PreCheck(runtime connector.Runtime) (bool, error)

type FastPrepare

type FastPrepare struct {
	BasePrepare
	Inject func(runtime connector.Runtime) (bool, error)
}

func (*FastPrepare) PreCheck

func (b *FastPrepare) PreCheck(runtime connector.Runtime) (bool, error)

type FileExist

type FileExist struct {
	BasePrepare
	FilePath string
	Not      bool
}

func (*FileExist) PreCheck

func (f *FileExist) PreCheck(runtime connector.Runtime) (bool, error)

type Prepare

type Prepare interface {
	PreCheck(runtime connector.Runtime) (bool, error)
	Init(cache *cache.Cache, rootCache *cache.Cache)
	AutoAssert(runtime connector.Runtime)
}

type PrepareCollection

type PrepareCollection []Prepare

func (*PrepareCollection) AutoAssert

func (p *PrepareCollection) AutoAssert(runtime connector.Runtime)

func (*PrepareCollection) Init

func (p *PrepareCollection) Init(cache *cache.Cache, rootCache *cache.Cache)

func (*PrepareCollection) PreCheck

func (p *PrepareCollection) PreCheck(runtime connector.Runtime) (bool, error)

Jump to

Keyboard shortcuts

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