config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 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 CheckFieldOperation

type CheckFieldOperation struct {
	Property string
	Operator string
	Value    string
}

type Config

type Config struct {
	Infra Modules
	Tests []TestCase
}

func New

func New() Config

func (*Config) GetModule

func (c *Config) GetModule(name string) (*InfraModule, error)

func (*Config) Parse

func (c *Config) Parse() error

type ExpectResult

type ExpectResult struct {
	Exists string
	Field  CheckFieldOperation
}

type GetOperation

type GetOperation struct {
	Resource string
	Name     string
	Params   map[string]interface{}
}

type InfraModule

type InfraModule struct {
	Name      string
	Type      string
	Terraform TerraformConfig //Currently registering new providers is manual. Need a better way to do this.

}

type Modules

type Modules []InfraModule

type TerraformConfig

type TerraformConfig struct {
	Path      string
	Log       bool
	Strategy  string
	Variables map[string]interface{}
}

type TestCase

type TestCase struct {
	Name  string
	Given string
	When  WhenCondition
	Then  ThenCondition
}

type ThenCondition

type ThenCondition struct {
	Expect []ExpectResult
}

type WhenCondition

type WhenCondition struct {
	Run       string
	LogOutput bool
}

Jump to

Keyboard shortcuts

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