condition

package
v0.0.0-...-30a59cf Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileIsExisted

type FileIsExisted struct {
	Config resolver.FileGlobConfig
}

func (*FileIsExisted) IsEnable

func (cond *FileIsExisted) IsEnable(ctx context.Context) (bool, error)

type FileNotChanged

type FileNotChanged struct {
	Config resolver.FileGlobConfig
	MD5    string
}

func (*FileNotChanged) CurrentMD5

func (cond *FileNotChanged) CurrentMD5(ctx context.Context) (string, error)

func (*FileNotChanged) IsEnable

func (cond *FileNotChanged) IsEnable(ctx context.Context) (bool, error)

type Requires

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

func NewRequiresFromDocumentTask

func NewRequiresFromDocumentTask(dt *model.DocumentTask) *Requires

func (*Requires) Test

func (r *Requires) Test(ctx context.Context, opts TestOption) (sufficient bool)

type Skips

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

func NewSkipsFromDocumentTask

func NewSkipsFromDocumentTask(dt *model.DocumentTask) *Skips

func (*Skips) Test

func (s *Skips) Test(ctx context.Context, opts TestOption) (skip bool)

func (*Skips) UpdateDocumentTask

func (s *Skips) UpdateDocumentTask(ctx context.Context, dt *model.DocumentTask)

type TestOption

type TestOption struct{}

Jump to

Keyboard shortcuts

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