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 ¶
MarshalText returns string representation of a AssetType instance.
func (*AssetType) UnmarshalText ¶
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.
Click to show internal directories.
Click to hide internal directories.