config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 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 added in v0.3.0

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

func (*Config) AddSet added in v0.3.0

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