crdloader

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedAPIFS embed.FS

Embed specific files

Functions

func AddStorage

func AddStorage(backends map[schema.GroupVersion]*BackendConfig, apiStore *api.APIStore) error

func GetAPIExtReader

func GetAPIExtReader() pkgio.Reader[*yaml.RNode]

func GetBackendConfig

func GetBackendConfig() map[schema.GroupVersion]*BackendConfig

func GetEmbeddedAPIReader

func GetEmbeddedAPIReader() pkgio.Reader[*yaml.RNode]

func GetFSYAMLReader

func GetFSYAMLReader(path string, matchgvks []schema.GroupVersionKind) pkgio.Reader[*yaml.RNode]

func GetFileAPICRDReader

func GetFileAPICRDReader(abspath string) pkgio.Reader[*yaml.RNode]

func GetInternalAPIReader

func GetInternalAPIReader() pkgio.Reader[*yaml.RNode]

func GetResourceCtxAPIExt

func GetResourceCtxAPIExt(ctx context.Context, pathInRepo, dbpath string) (*api.ResourceContext, error)

func LoadCRD

func LoadCRD(ctx context.Context, pathInRepo, dbpath string, crd *apiextensionsv1.CustomResourceDefinition, internalAPIs map[schema.GroupVersion]*BackendConfig) (*api.ResourceContext, error)

loadCRD loads the storage version of the CRD. if no storage version is supplied this call will fail

Types

type BackendConfig

type BackendConfig struct {
	Backend         backend.Backend
	ClaimPreparator registry.APIPrepator
	IndexPreparator registry.APIPrepator
	IndexKind       string
	EntryKind       string
	ClaimKind       string
}

Jump to

Keyboard shortcuts

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