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: 4 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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