cpi

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

README

Context Provider Interface for context configurations

Documentation

Index

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 ErrNoContext(name string) error

func IsErrConfigNotApplicable

func IsErrConfigNotApplicable(err error) bool

func IsErrNoContext

func IsErrNoContext(err error) bool

func IsGeneric

func IsGeneric(cfg Config) bool

func RegisterConfigType

func RegisterConfigType(name string, atype ConfigType)

Types

type Config

type Config = internal.Config

func NewGenericConfig

func NewGenericConfig(data []byte, unmarshaler runtime.Unmarshaler) (Config, error)

type ConfigType

type ConfigType = internal.ConfigType

func NewConfigType

func NewConfigType(name string, proto Config, usages ...string) ConfigType

type ConfigTypeScheme

type ConfigTypeScheme = internal.ConfigTypeScheme

func NewConfigTypeScheme

func NewConfigTypeScheme() ConfigTypeScheme

type Context

type Context = internal.Context

type ContextProvider

type ContextProvider = internal.ContextProvider

type DefaultConfigType

type DefaultConfigType struct {
	runtime.ObjectVersionedType
	runtime.TypedObjectDecoder
	// contains filtered or unexported fields
}

func (*DefaultConfigType) Usage

func (t *DefaultConfigType) Usage() string

type GenericConfig

type GenericConfig = internal.GenericConfig

func ToGenericConfig

func ToGenericConfig(c Config) (*GenericConfig, error)

type Updater

type Updater = internal.Updater

func NewUpdater

func NewUpdater(ctx Context, target interface{}) Updater

Jump to

Keyboard shortcuts

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