metadata

package
v0.0.0-...-9f7285a Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const LabelKeyIncludedInDryRunResultFlag = "metadata/include-in-dry-run-result"
View Source
const LabelKeyIncludedInResultBinaryFlag = "metadata/include-in-result-binary"
View Source
const LabelKeyIncludedInRunResultFlag = "metadata/include-in-run-result"

TODO: avoid circular dependency and use namespace in the flag name

View Source
const LabelKeyIncludedInTaskListFlag = "metadata/include-in-tasklist"

Variables

This section is empty.

Functions

func IncludeInDryRunResult

func IncludeInDryRunResult() task.LabelOpt

func IncludeInResultBinary

func IncludeInResultBinary() task.LabelOpt

func IncludeInRunResult

func IncludeInRunResult() task.LabelOpt

func IncludeInTaskList

func IncludeInTaskList() task.LabelOpt

Types

type Metadata

type Metadata interface {
	ToSerializable() interface{}
	Labels() *task.LabelSet
}

type MetadataFactory

type MetadataFactory interface {
	Instanciate() Metadata
}

type MetadataSet

type MetadataSet struct {
	// contains filtered or unexported fields
}

MetadataSet is a type containing data used in frontend except the actual inspection data.

func NewSet

func NewSet() *MetadataSet

func (*MetadataSet) LoadOrStore

func (m *MetadataSet) LoadOrStore(id string, factory MetadataFactory) Metadata

func (*MetadataSet) ToMap

func (m *MetadataSet) ToMap(filters ...task.LabelFilter) (map[string]interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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