persistence

package
v2.14.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 7 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 `` /* 182-byte string literal not displayed */
}

type ComplexApiDefinition added in v2.10.1

type ComplexApiDefinition struct {
	Name  string          `yaml:"name" json:"name" jsonschema:"required,description=The name of the API the config is for." mapstructure:"name"`
	Scope ConfigParameter `` /* 145-byte string literal not displayed */
}

type ConfigDefinition

type ConfigDefinition struct {
	Name           ConfigParameter            `` /* 140-byte string literal not displayed */
	Parameters     map[string]ConfigParameter `yaml:"parameters,omitempty" json:"parameters,omitempty" jsonschema:"description=Parameters for this configuration."`
	Template       string                     `` /* 147-byte string literal not displayed */
	Skip           ConfigParameter            `` /* 130-byte string literal not displayed */
	OriginObjectId string                     `` /* 260-byte string literal not displayed */
}

type ConfigParameter

type ConfigParameter interface{}

type DocumentDefinition added in v2.14.0

type DocumentDefinition struct {
	Type config.DocumentType `` /* 177-byte string literal not displayed */
}

type EnvironmentOverride

type EnvironmentOverride struct {
	Environment string           `yaml:"environment" json:"environment" jsonschema:"required,description=Name of the environment this override applies for."`
	Override    ConfigDefinition `` /* 170-byte string literal not displayed */
}

type GroupOverride

type GroupOverride struct {
	Group    string           `yaml:"group" json:"group" jsonschema:"required,description=Name of the group this override applies for."`
	Override ConfigDefinition `` /* 183-byte string literal not displayed */
}

type SettingsDefinition

type SettingsDefinition struct {
	Schema        string          `yaml:"schema,omitempty" json:"schema,omitempty" jsonschema:"required,description=The Settings 2.0 schema of this config."`
	SchemaVersion string          `` /* 184-byte string literal not displayed */
	Scope         ConfigParameter `` /* 134-byte string literal not displayed */
	InsertAfter   ConfigParameter `` /* 199-byte string literal not displayed */
}

type TopLevelConfigDefinition

type TopLevelConfigDefinition struct {
	Id     string           `` /* 169-byte string literal not displayed */
	Config ConfigDefinition `yaml:"config" json:"config" jsonschema:"required,description=The actual configuration to be applied"`
	Type   TypeDefinition   `` /* 158-byte string literal not displayed */
	// GroupOverrides overwrite specific parts of the Config when deploying it to any environment in a given group
	GroupOverrides []GroupOverride `` /* 197-byte string literal not displayed */
	// EnvironmentOverrides overwrite specific parts of the Config when deploying it to a given environment
	EnvironmentOverrides []EnvironmentOverride `` /* 202-byte string literal not displayed */
}

type TopLevelDefinition

type TopLevelDefinition struct {
	Configs []TopLevelConfigDefinition `` /* 142-byte string literal not displayed */
}

type TypeDefinition

type TypeDefinition struct {
	Type        config.Type
	Scope       ConfigParameter
	InsertAfter ConfigParameter
}

func (*TypeDefinition) GetApiType

func (c *TypeDefinition) GetApiType() string

func (TypeDefinition) MarshalYAML added in v2.10.1

func (c TypeDefinition) MarshalYAML() (interface{}, 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.

func (*TypeDefinition) Validate added in v2.10.1

func (c *TypeDefinition) Validate(apis map[string]struct{}) error

Validate verifies whether the given type definition is valid (correct APIs, fields set, etc)

Jump to

Keyboard shortcuts

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