persistence

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteEntry

type DeleteEntry struct {
	Project    string `yaml:"project,omitempty" mapstructure:"project"`
	Type       string `yaml:"type" mapstructure:"type"`
	ConfigId   string `yaml:"id,omitempty" mapstructure:"id"`
	ConfigName string `yaml:"name,omitempty" mapstructure:"name"`
}

DeleteEntry is a full representation of a delete entry loaded from a YAML delete file ConfigId and ConfigName should be mutually exclusive (validated if using LoadEntriesToDelete)

type FileDefinition

type FileDefinition struct {
	// DeleteEntries loaded from a file are either legacy shorthand strings or full DeleteEntry values
	DeleteEntries []interface{} `yaml:"delete"`
}

FileDefinition represents a loaded YAML delete file consisting of a list of delete entries called 'delete' In this struct DeleteEntries may either be a legacy shorthand string or full DeleteEntry value. Use FullFileDefinition if you're always working with DeleteEntry values instead

type FullFileDefinition

type FullFileDefinition struct {
	// DeleteEntries loaded from a file are either legacy shorthand strings or full DeleteEntry values
	DeleteEntries []DeleteEntry `yaml:"delete"`
}

FullFileDefinition represents a delete file consisting of a list of delete entries called 'delete' In this struct DeleteEntries are DeleteEntry values.

Jump to

Keyboard shortcuts

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