validate

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceType

type ResourceType int

ResourceType is the type of the resource returned

const (
	DNSName ResourceType = iota + 1
	PublicIP
	PrivateIP
	None
)

A list of supported resource types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator contains a validator for identifying type of resource

func NewValidator

func NewValidator() (*Validator, error)

NewValidator creates a validator for identifying type of resource

func (*Validator) Identify

func (v *Validator) Identify(item string) ResourceType

Identify returns the resourcetype for an item

Jump to

Keyboard shortcuts

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