persistence

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BucketType = "bucket"

Variables

This section is empty.

Functions

func GetTopLevelDefinitionYamlTypeName

func GetTopLevelDefinitionYamlTypeName() string

Types

type AutomationDefinition

type AutomationDefinition struct {
	Resource config.AutomationResource `yaml:"resource"`
}

type ConfigDefinition

type ConfigDefinition struct {
	Name           ConfigParameter            `yaml:"name,omitempty"`
	Parameters     map[string]ConfigParameter `yaml:"parameters,omitempty"`
	Template       string                     `yaml:"template,omitempty"`
	Skip           ConfigParameter            `yaml:"skip,omitempty"`
	OriginObjectId string                     `yaml:"originObjectId,omitempty"`
}

type ConfigParameter

type ConfigParameter interface{}

type EntitiesDefinition

type EntitiesDefinition struct {
	EntitiesType string `yaml:"entitiesType,omitempty"`
}

type EnvironmentOverride

type EnvironmentOverride struct {
	Environment string           `yaml:"environment"`
	Override    ConfigDefinition `yaml:"override"`
}

type GroupOverride

type GroupOverride struct {
	Group    string           `yaml:"group"`
	Override ConfigDefinition `yaml:"override"`
}

type SettingsDefinition

type SettingsDefinition struct {
	Schema        string          `yaml:"schema,omitempty"`
	SchemaVersion string          `yaml:"schemaVersion,omitempty"`
	Scope         ConfigParameter `yaml:"scope,omitempty"`
}

type TopLevelConfigDefinition

type TopLevelConfigDefinition struct {
	Id                   string                `yaml:"id"`
	Config               ConfigDefinition      `yaml:"config"`
	Type                 TypeDefinition        `yaml:"type"`
	GroupOverrides       []GroupOverride       `yaml:"groupOverrides,omitempty"`
	EnvironmentOverrides []EnvironmentOverride `yaml:"environmentOverrides,omitempty"`
}

type TopLevelDefinition

type TopLevelDefinition struct {
	Configs []TopLevelConfigDefinition `yaml:"configs"`
}

type TypeDefinition

type TypeDefinition struct {
	Api        string               `yaml:"api,omitempty"`
	Bucket     string               `yaml:"bucket,omitempty"`
	Settings   SettingsDefinition   `yaml:"settings,omitempty"`
	Entities   EntitiesDefinition   `yaml:"entities,omitempty"`
	Automation AutomationDefinition `yaml:"automation,omitempty"`
}

func (*TypeDefinition) GetApiType

func (c *TypeDefinition) GetApiType() string

func (*TypeDefinition) IsAutomation

func (c *TypeDefinition) IsAutomation() bool

func (*TypeDefinition) IsBucket added in v2.8.0

func (c *TypeDefinition) IsBucket() bool

func (*TypeDefinition) IsClassic

func (c *TypeDefinition) IsClassic() bool

func (*TypeDefinition) IsEntities

func (c *TypeDefinition) IsEntities() bool

func (*TypeDefinition) IsSettings

func (c *TypeDefinition) IsSettings() bool

IsSettings returns true iff one of fields from TypeDefinition are filed up

func (*TypeDefinition) IsSound

func (c *TypeDefinition) IsSound(knownApis map[string]struct{}) error

func (*TypeDefinition) UnmarshalYAML

func (c *TypeDefinition) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML Custom unmarshaler that knows how to handle TypeDefinition. 'type' section can come as string or as struct as it is defind in `TypeDefinition` function parameter more than once if necessary.

Jump to

Keyboard shortcuts

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