config

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigType   = "generic" + cpi.OCM_CONFIG_TYPE_SUFFIX
	ConfigTypeV1 = ConfigType + runtime.VersionSeparator + "v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

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

func NewAggregator

func NewAggregator(optimized bool, cfgs ...cpi.Config) (*Aggregator, error)

func (*Aggregator) AddConfig

func (a *Aggregator) AddConfig(cfg cpi.Config) error

func (*Aggregator) Get

func (a *Aggregator) Get() cpi.Config

type Config

type Config struct {
	runtime.ObjectVersionedType `json:",inline"`
	cpi.ConfigurationList       `json:",inline"`
	Sets                        map[string]cpi.ConfigSet `json:"sets,omitempty"`
}

Config describes a memory based repository interface.

func New

func New() *Config

New creates a new memory ConfigSpec.

func (*Config) AddConfigToSet

func (c *Config) AddConfigToSet(name string, cfg cpi.Config) error

func (*Config) AddSet

func (c *Config) AddSet(name, desc string)

func (*Config) ApplyTo

func (c *Config) ApplyTo(ctx cpi.Context, target interface{}) error

func (*Config) GetType

func (c *Config) GetType() string

Jump to

Keyboard shortcuts

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