Documentation ¶
Index ¶
Constants ¶
View Source
const ATTR_ROUTINGSLIP_ENTRYTYPES = "github.com/open-component-model/ocm/pkg/contexts/ocm/labels/routingslip"
Variables ¶
This section is empty.
Functions ¶
func SetFor ¶
func SetFor(ctx datacontext.Context, registry EntryTypeScheme)
Types ¶
type Entry ¶
type Entry interface { runtime.VersionedTypedObject Describe(ctx Context) string Validate(ctx Context) error }
Entry is the interface access method specifications must fulfill. The main task is to map the specification to a concrete implementation of the access method for a dedicated component version.
func CreateEntry ¶
func CreateEntry(t runtime.TypedObject) (Entry, error)
func NewGenericEntry ¶
func NewGenericEntry(data []byte, unmarshaler ...runtime.Unmarshaler) (Entry, error)
type EntryDecoder ¶
type EntryDecoder = runtime.TypedObjectDecoder[Entry]
type EntryType ¶
type EntryType flagsetscheme.VersionTypedObjectType[Entry]
type EntryTypeProvider ¶
type EntryTypeProvider = runtime.KnownTypesProvider[Entry, EntryType]
type EntryTypeScheme ¶
type EntryTypeScheme = flagsetscheme.ExtendedTypeScheme[Entry, EntryType, flagsets.ExplicitlyTypedConfigTypeOptionSetConfigProvider]
func DefaultEntryTypeScheme ¶
func DefaultEntryTypeScheme() EntryTypeScheme
func For ¶
func For(ctx cpi.ContextProvider) EntryTypeScheme
func NewEntryTypeScheme ¶
func NewEntryTypeScheme(base ...EntryTypeScheme) EntryTypeScheme
func NewStrictEntryTypeScheme ¶
func NewStrictEntryTypeScheme(base ...EntryTypeScheme) EntryTypeScheme
type EvaluatableEntry ¶
type GenericEntry ¶
type GenericEntry struct {
runtime.UnstructuredVersionedTypedObject `json:",inline"`
}
func AsGenericEntry ¶
func AsGenericEntry(u *runtime.UnstructuredTypedObject) *GenericEntry
func ToGenericEntry ¶
func ToGenericEntry(spec Entry) (*GenericEntry, error)
func (*GenericEntry) Describe ¶
func (s *GenericEntry) Describe(ctx Context) string
func (*GenericEntry) Validate ¶
func (s *GenericEntry) Validate(ctx Context) error
type UnknownEntry ¶
type UnknownEntry struct {
runtime.UnstructuredVersionedTypedObject `json:",inline"`
}
func (*UnknownEntry) Describe ¶
func (u *UnknownEntry) Describe(ctx Context) string
func (*UnknownEntry) IsUnknown ¶
func (_ *UnknownEntry) IsUnknown() bool
func (*UnknownEntry) Validate ¶
func (u *UnknownEntry) Validate(ctx Context) error
Click to show internal directories.
Click to hide internal directories.