validators

package
v0.0.0-...-a4d1c73 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package validators contains additional validators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneralValidateResourceByName

func GeneralValidateResourceByName(resourceValue template.Resource, resourceValidation *logger.ResourceValidation, ctx *context.Context)

func IsVpcValid

func IsVpcValid(vpc template.Resource, resourceValidation *logger.ResourceValidation) bool

IsVpcValid : Checks if CIDR block is valid.

func UserDecideGeneralRule

func UserDecideGeneralRule(ctx *context.Context) bool

Types

type Restrictor

type Restrictor func(string) (bool, string)

func GetRestrictor

func GetRestrictor(key string, ctx *context.Context) Restrictor

type Tag

type Tag struct {
	Key   string
	Value string
}

Tag - structure of Tag in Template.

type VpcProperties

type VpcProperties struct {
	CidrBlock          string
	EnableDnsSupport   bool
	EnableDnsHostnames bool
	InstanceTenancy    string
	Tags               []Tag
}

VpcProperties describes structure of Vpc.

Jump to

Keyboard shortcuts

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