verifier

package
v0.0.0-...-1ce0244 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: GPL-3.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 Config

type Config struct {
	Name      string   `mapstructure:"name"`
	TestFile  string   `mapstructure:"testfile"`
	ExtraArgs []string `mapstructure:"extra_args"`
}

type GossVerifier

type GossVerifier struct {
	Name      string
	Command   string
	Args      []string
	ExtraArgs []string
	TestFile  string
}

func (GossVerifier) GetCommand

func (v GossVerifier) GetCommand() (map[string]string, string, []string)

func (GossVerifier) GetTestFile

func (v GossVerifier) GetTestFile() string

func (GossVerifier) String

func (v GossVerifier) String() string

func (GossVerifier) WithTestFile

func (v GossVerifier) WithTestFile(file string) Verifier

type TestInfraVerifier

type TestInfraVerifier struct {
	Name     string
	Command  string
	Args     []string
	EnvVars  map[string]string
	TestFile string
}

func (TestInfraVerifier) GetCommand

func (v TestInfraVerifier) GetCommand() (map[string]string, string, []string)

func (TestInfraVerifier) GetTestFile

func (v TestInfraVerifier) GetTestFile() string

func (TestInfraVerifier) String

func (v TestInfraVerifier) String() string

func (TestInfraVerifier) WithTestFile

func (v TestInfraVerifier) WithTestFile(file string) Verifier

type Verifier

type Verifier interface {
	GetCommand() (map[string]string, string, []string)
	GetTestFile() string
	WithTestFile(file string) Verifier
	String() string
}

func NewVerifier

func NewVerifier(config Config) (Verifier, error)

Jump to

Keyboard shortcuts

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