assert

package
v0.0.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package assert contains types and methods used by the plugin

Index

Constants

View Source
const (
	// BlockAssert identifier of the plugin.
	BlockAssert = "assert"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Assert

type Assert struct {
	*actions.Base
	// contains filtered or unexported fields
}

Assert plugin definition.

func (*Assert) Assertion

func (a *Assert) Assertion() hcl.Expression

Assertion obtain the assertion.

func (*Assert) Execute

func (a *Assert) Execute(ctx context.FeatureContext) errors.Error

Execute execute the assert plugin.

func (*Assert) SetAssertion

func (a *Assert) SetAssertion(assertion hcl.Expression)

SetAssertion establish the assertion.

type Decoder

type Decoder struct{}

Decoder implements interface plugin.Decoder.

func (*Decoder) BlockHeaderSchema

func (dec *Decoder) BlockHeaderSchema() hcl.BlockHeaderSchema

BlockHeaderSchema return the header schema for the plugin.

func (*Decoder) DecodeBlock

func (dec *Decoder) DecodeBlock(block *hcl.Block) (actions.Action, errors.Error)

DecodeBlock required method implementation by interface Decoder.

Jump to

Keyboard shortcuts

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