meta

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefMatches

func RefMatches(ref Ref, meta *Meta) bool

func SelectorMatches

func SelectorMatches(selector Selector, labels Labels) bool

Types

type Labels

type Labels map[string]string

type Meta

type Meta struct {
	Name   string            `json:"name,omitempty" yaml:"name,omitempty" hcl:"name,omitempty"`
	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty" hcl:"labels,omitempty"`
}

func (Meta) String added in v0.25.0

func (m Meta) String() string

type Ref

type Ref struct {
	// Ref is how this referenced file can be described in a template function
	// This can be used to support multiple files in a single analyzer
	// Ref string `json:"ref,omitempty" yaml:"ref,omitempty" hcl:"ref,omitempty"`
	// Name is a way to reference a collected file by name
	Name string `json:"name,omitempty" yaml:"name,omitempty" hcl:"name,omitempty"`
	// Selector is a way to reference a collected file by labels
	Selector Selector `json:"selector,omitempty" yaml:"selector,omitempty" hcl:"selector,omitempty"`
}

Ref references a collected file by name or selector

func (Ref) String added in v0.25.0

func (r Ref) String() string

type Selector

type Selector map[string]string

Jump to

Keyboard shortcuts

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