spi

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNewEntryMultiFormatVersion

func MustNewEntryMultiFormatVersion(kind string, formats EntryFormatVersionRegistry) runtime.FormatVersion[Entry]

func NewStrictEntryTypeScheme

func NewStrictEntryTypeScheme() runtime.VersionedTypeRegistry[Entry, EntryType]

func Register

func Register(atype EntryType)

func RegisterEntryTypeVersions

func RegisterEntryTypeVersions(s EntryTypeVersionScheme)

Types

type Context

type Context = cpi.Context

type Entry

type Entry = internal.Entry

type EntryFormatVersionRegistry

type EntryFormatVersionRegistry = runtime.FormatVersionRegistry[Entry]

func NewEntryFormatVersionRegistry

func NewEntryFormatVersionRegistry() EntryFormatVersionRegistry

type EntryType

type EntryType = internal.EntryType

func NewEntryType

func NewEntryType[I Entry](name string, opts ...EntryTypeOption) EntryType

func NewEntryTypeByConverter

func NewEntryTypeByConverter[I Entry, V runtime.VersionedTypedObject](name string, converter runtime.Converter[I, V], opts ...EntryTypeOption) EntryType

func NewEntryTypeByFormatVersion

func NewEntryTypeByFormatVersion(name string, fmt runtime.FormatVersion[Entry], opts ...EntryTypeOption) EntryType

type EntryTypeOption

type EntryTypeOption = flagsetscheme.TypeOption

func WithDescription

func WithDescription(value string) EntryTypeOption

func WithFormatSpec

func WithFormatSpec(value string) EntryTypeOption

type EntryTypeScheme

type EntryTypeScheme = internal.EntryTypeScheme

func DefaultEntryTypeScheme

func DefaultEntryTypeScheme() EntryTypeScheme

type EntryTypeVersionScheme

type EntryTypeVersionScheme = runtime.TypeVersionScheme[Entry, EntryType]

func NewEntryTypeVersionScheme

func NewEntryTypeVersionScheme(kind string) EntryTypeVersionScheme

type GenericEntry

type GenericEntry = internal.GenericEntry

type UnknownEntry

type UnknownEntry = internal.UnknownEntry

Jump to

Keyboard shortcuts

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