internal

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ATTR_ROUTINGSLIP_ENTRYTYPES = "ocm.software/ocm/api/ocm/extensions/labels/routingslip"

Variables

This section is empty.

Functions

func SetFor

func SetFor(ctx datacontext.Context, registry EntryTypeScheme)

Types

type Context

type Context = cpi.Context

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 EntryTypeProvider

type EntryTypeProvider = runtime.KnownTypesProvider[Entry, EntryType]

type EvaluatableEntry

type EvaluatableEntry interface {
	Entry
	Evaluate(ctx Context) (Entry, error)
}

type GenericEntry

type GenericEntry struct {
	runtime.UnstructuredVersionedTypedObject `json:",inline"`
}

func ToGenericEntry

func ToGenericEntry(spec Entry) (*GenericEntry, error)

func (*GenericEntry) Describe

func (s *GenericEntry) Describe(ctx Context) string

func (*GenericEntry) Evaluate

func (s *GenericEntry) Evaluate(ctx Context) (Entry, error)

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

Jump to

Keyboard shortcuts

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