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 ¶
func RegisterConfigTypeVersions(s ConfigTypeVersionScheme)
Types ¶
type Config ¶
func NewGenericConfig ¶
func NewGenericConfig(data []byte, unmarshaler runtime.Unmarshaler) (Config, error)
type ConfigApplier ¶
type ConfigApplier = internal.ConfigApplier
type ConfigApplierFunction ¶
type ConfigApplierFunction = internal.ConfigApplierFunction
type ConfigType ¶
type ConfigType = internal.ConfigType
func NewConfigType ¶
func NewConfigType[I Config](name string, usages ...string) ConfigType
func NewConfigTypeByFormatVersion ¶
func NewConfigTypeByFormatVersion(name string, fmt runtime.FormatVersion[Config], usages ...string) ConfigType
func NewConfigTypeyConverter ¶
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 ¶
type ConfigTypeVersionScheme = runtime.TypeVersionScheme[Config, ConfigType]
func NewConfigTypeVersionScheme ¶
func NewConfigTypeVersionScheme(kind string) ConfigTypeVersionScheme
type ConfigurationList ¶
type ConfigurationList = internal.ConfigurationList
type ContentSpec ¶
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 ¶
func (k ContentSpec) Get() (interface{}, error)
type Context ¶
func FromProvider ¶
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 Updater ¶
func NewUpdater ¶
func NewUpdater(ctx ContextProvider, target interface{}) Updater
func NewUpdaterForFactory ¶
func NewUpdaterForFactory[T any](ctx ContextProvider, f func() T) Updater
Click to show internal directories.
Click to hide internal directories.