manifest

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetType

type AssetType int

AssetType defines the valid types of assets a check can accept.

const (
	// IP represents an IP assettype.
	IP AssetType = iota
	// Hostname represents a hostname assettype.
	Hostname
	// DomainName represents an domain name assettype.
	DomainName
	// AWSAccount represents an AWS account assettype.
	AWSAccount
	// IPRange represents an IP range assettype.
	IPRange
	// DockerImage represents a DockerImage asset type.
	DockerImage
	// WebAddress represents a WebAddress asset type.
	WebAddress
	// GitRepository represents a git repo asset type.
	GitRepository
	// GCPProject represents a GCP Project asset type.
	GCPProject
)

func (*AssetType) MarshalText

func (a *AssetType) MarshalText() (text []byte, err error)

MarshalText returns string representation of a AssetType instance.

func (*AssetType) String

func (a *AssetType) String() (string, error)

func (*AssetType) UnmarshalText

func (a *AssetType) UnmarshalText(text []byte) error

UnmarshalText creates a AssetType from its string representation.

type AssetTypes

type AssetTypes []*AssetType

AssetTypes represents and array of asset types supported by a concrete checktype.

func (AssetTypes) Strings

func (a AssetTypes) Strings() ([]string, error)

Strings converts a slice of Assettypes into a slice of strings.

type Data

type Data struct {
	Description  string
	Timeout      int
	Options      string
	RequiredVars []string
	QueueName    string
	AssetTypes   AssetTypes
}

Data contains all the data defined in the manifest.

func Read

func Read(path string) (Data, error)

Read reads a manifest file.

Jump to

Keyboard shortcuts

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