directive_mock

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDirective

type MockDirective struct {
	ValidateErr error
	ValueOpts   directive.ValueOptions
}

MockDirective is a mock directive.

func (*MockDirective) GetDebugVals

func (m *MockDirective) GetDebugVals() directive.DebugValues

GetDebugVals returns the directive arguments as key/value pairs. This should be something like param1="test", param2="test". This is not necessarily unique, and is primarily intended for display.

func (*MockDirective) GetName

func (m *MockDirective) GetName() string

GetName returns the directive name.

func (*MockDirective) GetValueOptions

func (m *MockDirective) GetValueOptions() directive.ValueOptions

func (*MockDirective) Validate

func (m *MockDirective) Validate() error

Validate validates the directive. This is a cursory validation to see if the values "look correct."

Jump to

Keyboard shortcuts

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