common

package module
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Contexts = struct {
	AWS          Context
	AWSGeneric   Context
	Azure        Context
	CloudFoundry Context
	Contextless  Context
	Environment  Context
	GoogleCloud  Context
	Kubernetes   Context
}{
	"AWS",
	"AWS_GENERIC",
	"AZURE",
	"CLOUD_FOUNDRY",
	"CONTEXTLESS",
	"ENVIRONMENT",
	"GOOGLE_CLOUD",
	"KUBERNETES",
}

Contexts offers the known enum values

Functions

This section is empty.

Types

type Context

type Context string

Context The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the `CONTEXTLESS` value.

type TagFilter

type TagFilter struct {
	Context              Context `json:"context"`                        // The origin of the tag, such as AWS or Cloud Foundry.  Custom tags use the `CONTEXTLESS` value.
	Key                  string  `json:"key"`                            // The key of the tag. Custom tags have the tag value here.
	Value                *string `json:"value,omitempty"`                // The value of the tag. Not applicable to custom tags.
	StringRepresentation *string `json:"stringRepresentation,omitempty"` // The string representation of the tag.
}

TagFilter A tag-based filter of monitored entities.

func (*TagFilter) Equals

func (me *TagFilter) Equals(other *TagFilter) bool

func (*TagFilter) MarshalHCL

func (me *TagFilter) MarshalHCL() (map[string]interface{}, error)

func (*TagFilter) Schema

func (me *TagFilter) Schema() map[string]*hcl.Schema

func (*TagFilter) UnmarshalHCL

func (me *TagFilter) UnmarshalHCL(decoder hcl.Decoder) error

type TagFilters

type TagFilters []*TagFilter

func (TagFilters) MarshalHCL

func (me TagFilters) MarshalHCL() (map[string]interface{}, error)

func (TagFilters) Schema

func (me TagFilters) Schema() map[string]*hcl.Schema

func (*TagFilters) UnmarshalHCL

func (me *TagFilters) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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