validate

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright © LiquidWeb

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var ValidationFailure = errors.New("validation failed")

Functions

func Validate

func Validate(chk map[interface{}]interface{}) (err error)

Types

type InputTypeCIDR added in v0.6.10

type InputTypeCIDR struct {
	CIDR string
}

func (InputTypeCIDR) Validate added in v0.6.10

func (x InputTypeCIDR) Validate() error

type InputTypeHttpsLiquidwebUrl

type InputTypeHttpsLiquidwebUrl struct {
	HttpsLiquidwebUrl string
}

func (InputTypeHttpsLiquidwebUrl) Validate

func (x InputTypeHttpsLiquidwebUrl) Validate() error

type InputTypeIP

type InputTypeIP struct {
	IP string
}

func (InputTypeIP) Validate

func (x InputTypeIP) Validate() error

type InputTypeIpOrCidr added in v0.6.10

type InputTypeIpOrCidr struct {
	IpOrCidr string
}

func (InputTypeIpOrCidr) Validate added in v0.6.10

func (x InputTypeIpOrCidr) Validate() error

type InputTypeLoadBalancerHealthCheckProtocol

type InputTypeLoadBalancerHealthCheckProtocol struct {
	LoadBalancerHealthCheckProtocol string
}

func (InputTypeLoadBalancerHealthCheckProtocol) Validate

type InputTypeLoadBalancerHttpCodeRange

type InputTypeLoadBalancerHttpCodeRange struct {
	LoadBalancerHttpCodeRange string
}

func (InputTypeLoadBalancerHttpCodeRange) Validate

type InputTypeLoadBalancerStrategyString

type InputTypeLoadBalancerStrategyString struct {
	LoadBalancerStrategy string
}

func (InputTypeLoadBalancerStrategyString) Validate

type InputTypeNetworkPort

type InputTypeNetworkPort struct {
	NetworkPort int
}

func (InputTypeNetworkPort) Validate

func (x InputTypeNetworkPort) Validate() error

type InputTypeNetworkPortPair

type InputTypeNetworkPortPair struct {
	NetworkPortPair string
}

func (InputTypeNetworkPortPair) Validate

func (x InputTypeNetworkPortPair) Validate() error

type InputTypeNonEmptyString

type InputTypeNonEmptyString struct {
	NonEmptyString string
}

func (InputTypeNonEmptyString) Validate

func (x InputTypeNonEmptyString) Validate() error

type InputTypePositiveInt

type InputTypePositiveInt struct {
	PositiveInt int
}

func (InputTypePositiveInt) Validate

func (x InputTypePositiveInt) Validate() error

type InputTypePositiveInt64

type InputTypePositiveInt64 struct {
	PositiveInt64 int64
}

func (InputTypePositiveInt64) Validate

func (x InputTypePositiveInt64) Validate() error

type InputTypeUniqId

type InputTypeUniqId struct {
	UniqId string
}

func (InputTypeUniqId) Validate

func (x InputTypeUniqId) Validate() error

type InputTypes

type InputTypes struct {
	UniqId                          InputTypeUniqId
	IP                              InputTypeIP
	CIDR                            InputTypeCIDR
	IpOrCidr                        InputTypeIpOrCidr
	PositiveInt64                   InputTypePositiveInt64
	PositiveInt                     InputTypePositiveInt
	NonEmptyString                  InputTypeNonEmptyString
	LoadBalancerStrategy            InputTypeLoadBalancerStrategyString
	HttpsLiquidwebUrl               InputTypeHttpsLiquidwebUrl
	NetworkPortPair                 InputTypeNetworkPortPair
	NetworkPort                     InputTypeNetworkPort
	LoadBalancerHttpCodeRange       InputTypeLoadBalancerHttpCodeRange
	LoadBalancerHealthCheckProtocol InputTypeLoadBalancerHealthCheckProtocol
}

Jump to

Keyboard shortcuts

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