custom

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostRunFunctionRedis = "redis"
)

Valid post function types

View Source
const (
	PreRunFunctionRedis = "redis"
)

Valid pre function types

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyPost

type DummyPost struct{}

DummyPost does nothing

func (*DummyPost) Run

func (d *DummyPost) Run(args map[string]interface{}, store storage.Storage) error

Run does nothing

type DummyPre

type DummyPre struct{}

DummyPre does nothing

func (*DummyPre) Run

func (d *DummyPre) Run(args map[string]interface{}) (storage.Storage, error)

Run returns an empty storage

type PostOperation

type PostOperation interface {
	Run(args map[string]interface{}, store storage.Storage) error
}

PostOperation is the interface that structs must implement for postRun

func GetPost

func GetPost(config *viper.Viper, spec *models.Spec) (PostOperation, map[string]interface{})

GetPost returns the post operation for the spec, if it exists

type PreOperation

type PreOperation interface {
	Run(args map[string]interface{}) (storage.Storage, error)
}

PreOperation is the interface that structs must implement for preRun

func GetPre

func GetPre(config *viper.Viper, spec *models.Spec) (PreOperation, map[string]interface{})

GetPre returns the pre operation for the spec, if it exists

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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