config

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 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"`
	Configurations              []*cpi.GenericConfig `json:"configurations"`
}

Config describes a memory based repository interface.

func New

func New() *Config

NewConfigSpec creates a new memory ConfigSpec.

func (*Config) AddConfig

func (c *Config) AddConfig(cfg cpi.Config) error

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