checks

package
v2.1.1-0...-182a82a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ReservedKeywords represents a list with reserved keywords

Functions

func FlowDuplicates

func FlowDuplicates(ctx *broker.Context, flows specs.FlowListInterface) error

FlowDuplicates checks for duplicate definitions

func NodeDuplicates

func NodeDuplicates(ctx *broker.Context, flow string, nodes specs.NodeList) error

NodeDuplicates checks for duplicate definitions

Types

type ErrFlowDuplicate

type ErrFlowDuplicate struct {
	Flow string
}

ErrFlowDuplicate occurs when FlowDuplicates finds several flows with the same name

func (ErrFlowDuplicate) Error

func (e ErrFlowDuplicate) Error() string

func (ErrFlowDuplicate) Prettify

func (e ErrFlowDuplicate) Prettify() prettyerr.Error

type ErrReservedKeyword

type ErrReservedKeyword struct {
	Flow string
}

ErrReservedKeyword occurs when a flow's name conflicts with a reserved keyword.

func (ErrReservedKeyword) Error

func (e ErrReservedKeyword) Error() string

func (ErrReservedKeyword) Prettify

func (e ErrReservedKeyword) Prettify() prettyerr.Error

type ErrResourceDuplicate

type ErrResourceDuplicate struct {
	Flow     string
	Resource string
}

ErrResourceDuplicate occurs when NodeDuplicates finds several resources with the same name

func (ErrResourceDuplicate) Error

func (e ErrResourceDuplicate) Error() string

func (ErrResourceDuplicate) Prettify

func (e ErrResourceDuplicate) Prettify() prettyerr.Error

Jump to

Keyboard shortcuts

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