Documentation ¶
Index ¶
- Constants
- Variables
- func ErrNoContext(name string) error
- func IsErrConfigNotApplicable(err error) bool
- func IsErrNoContext(err error) bool
- func IsGeneric(cfg Config) bool
- func RegisterConfigType(rtype ConfigType)
- func RegisterConfigTypeVersions(s ConfigTypeVersionScheme)
- type Config
- type ConfigApplier
- type ConfigApplierFunction
- type ConfigSet
- type ConfigType
- func NewConfigType[I Config](name string, usages ...string) ConfigType
- func NewConfigTypeByFormatVersion(name string, fmt runtime.FormatVersion[Config], usages ...string) ConfigType
- func NewConfigTypeyConverter[I Config, V runtime.TypedObject](name string, converter runtime.Converter[I, V], usages ...string) ConfigType
- type ConfigTypeScheme
- type ConfigTypeVersionScheme
- type ConfigurationList
- type ContentSpec
- type Context
- type ContextProvider
- type GenericConfig
- type RawData
- type Updater
Constants ¶
View Source
const CONTEXT_TYPE = internal.CONTEXT_TYPE
View Source
const KIND_CONFIGTYPE = internal.KIND_CONFIGTYPE
View Source
const OCM_CONFIG_TYPE_SUFFIX = internal.OCM_CONFIG_TYPE_SUFFIX
Variables ¶
View Source
var DefaultContext = internal.DefaultContext
Functions ¶
func ErrNoContext ¶
func IsErrNoContext ¶
func RegisterConfigType ¶
func RegisterConfigType(rtype ConfigType)
func RegisterConfigTypeVersions ¶ added in v0.3.0
func RegisterConfigTypeVersions(s ConfigTypeVersionScheme)
Types ¶
type Config ¶
func NewGenericConfig ¶
func NewGenericConfig(data []byte, unmarshaler runtime.Unmarshaler) (Config, error)
type ConfigApplier ¶ added in v0.7.0
type ConfigApplier = internal.ConfigApplier
type ConfigApplierFunction ¶ added in v0.7.0
type ConfigApplierFunction = internal.ConfigApplierFunction
type ConfigType ¶
type ConfigType = internal.ConfigType
func NewConfigType ¶
func NewConfigType[I Config](name string, usages ...string) ConfigType
func NewConfigTypeByFormatVersion ¶ added in v0.3.0
func NewConfigTypeByFormatVersion(name string, fmt runtime.FormatVersion[Config], usages ...string) ConfigType
func NewConfigTypeyConverter ¶ added in v0.3.0
func NewConfigTypeyConverter[I Config, V runtime.TypedObject](name string, converter runtime.Converter[I, V], usages ...string) ConfigType
type ConfigTypeScheme ¶
type ConfigTypeScheme = internal.ConfigTypeScheme
func NewConfigTypeScheme ¶
func NewConfigTypeScheme() ConfigTypeScheme
type ConfigTypeVersionScheme ¶ added in v0.3.0
type ConfigTypeVersionScheme = runtime.TypeVersionScheme[Config, ConfigType]
func NewConfigTypeVersionScheme ¶ added in v0.3.0
func NewConfigTypeVersionScheme(kind string) ConfigTypeVersionScheme
type ConfigurationList ¶ added in v0.3.0
type ConfigurationList = internal.ConfigurationList
type ContentSpec ¶ added in v0.7.0
type ContentSpec struct { Data RawData `json:"data,omitempty"` StringData string `json:"stringdata,omitempty"` Path string `json:"path,omitempty"` Parsed interface{} `json:"-"` FileSystem vfs.FileSystem `json:"-"` }
func (ContentSpec) Get ¶ added in v0.7.0
func (k ContentSpec) Get() (interface{}, error)
type Context ¶
func FromProvider ¶ added in v0.3.0
func FromProvider(p ContextProvider) Context
type ContextProvider ¶
type ContextProvider = internal.ContextProvider
type GenericConfig ¶
type GenericConfig = internal.GenericConfig
func ToGenericConfig ¶
func ToGenericConfig(c Config) (*GenericConfig, error)
type RawData ¶ added in v0.7.0
type RawData []byte
func (RawData) MarshalJSON ¶ added in v0.7.0
func (*RawData) UnmarshalJSON ¶ added in v0.7.0
type Updater ¶
func NewUpdater ¶
func NewUpdater(ctx ContextProvider, target interface{}) Updater
func NewUpdaterForFactory ¶ added in v0.9.0
func NewUpdaterForFactory[T any](ctx ContextProvider, f func() T) Updater
Click to show internal directories.
Click to hide internal directories.