util

package
v0.0.0-...-81d5e5d Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccTestCheckValueInKeyPattern

func AccTestCheckValueInKeyPattern(resourceName string, keyPattern *regexp.Regexp, checkValue string) resource.TestCheckFunc

AccTestCheckValueInKeyPattern : Function is used by acceptance tests where we want to check for a value in a set

func AccessControlSchema

func AccessControlSchema() *schema.Schema

AccessControlSchema - returns the schema for an access control

func CheckLeadingTrailingSpaces

func CheckLeadingTrailingSpaces(v interface{}, k string) (ws []string, errors []error)

CheckLeadingTrailingSpaces - Checks strings for any leading/trailing space

func ExternalServerListSchema

func ExternalServerListSchema(optional, required bool) *schema.Schema

ExternalServerListSchema - returns the schema for a list of external servers

func ExternalServerSetSchema

func ExternalServerSetSchema(optional, required bool) *schema.Schema

ExternalServerSetSchema - returns the schema for a set of external servers

func ForwardingMemberServerListSchema

func ForwardingMemberServerListSchema() *schema.Schema

ForwardingMemberServerListSchema - returns a list of Forwarding Member Servers

func GetMapList

func GetMapList(v []interface{}) []map[string]interface{}

GetMapList - Get a list of maps out of a list of interfaces

func MemberServerListSchema

func MemberServerListSchema(optional, required bool) *schema.Schema

MemberServerListSchema - returns the schema for a list of member server structs

func ValidateAcType

func ValidateAcType(v interface{}, k string) (ws []string, errors []error)

ValidateAcType - validates if the access control type is correct

func ValidateAddressAcPermission

func ValidateAddressAcPermission(v interface{}, k string) (ws []string, errors []error)

ValidateAddressAcPermission - validates if the permission type is correct

func ValidateMaxLength

func ValidateMaxLength(maxLength int) schema.SchemaValidateFunc

ValidateMaxLength - Checks the length of a string against the maximum allowed value

func ValidateTSIGAlgorithm

func ValidateTSIGAlgorithm(v interface{}, k string) (ws []string, errors []error)

ValidateTSIGAlgorithm - Check for valid Encription Algorithms

func ValidateUnsignedInteger

func ValidateUnsignedInteger(v interface{}, k string) (ws []string, errors []error)

ValidateUnsignedInteger - Checks the value we are passing is actually >0

func ValidateZoneFormat

func ValidateZoneFormat(v interface{}, k string) (ws []string, errors []error)

ValidateZoneFormat - Checks the Zone Format is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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