meta

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 0 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"`
}

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 file 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" yaml:"selector" hcl:"selector"`
}

A Ref refers to a collected file

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