Documentation ¶
Index ¶
- Variables
- func AddStorage(backends map[schema.GroupVersion]*BackendConfig, apiStore *api.APIStore) error
- func GetAPIExtReader() pkgio.Reader[*yaml.RNode]
- func GetBackendConfig() map[schema.GroupVersion]*BackendConfig
- func GetEmbeddedAPIReader() pkgio.Reader[*yaml.RNode]
- func GetFSYAMLReader(path string, matchgvks []schema.GroupVersionKind) pkgio.Reader[*yaml.RNode]
- func GetFileAPICRDReader(abspath string) pkgio.Reader[*yaml.RNode]
- func GetInternalAPIReader() pkgio.Reader[*yaml.RNode]
- func GetResourceCtxAPIExt(ctx context.Context, pathInRepo, dbpath string) (*api.ResourceContext, error)
- func LoadCRD(ctx context.Context, pathInRepo, dbpath string, ...) (*api.ResourceContext, error)
- type BackendConfig
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 GetBackendConfig ¶
func GetBackendConfig() map[schema.GroupVersion]*BackendConfig
func GetFSYAMLReader ¶
func GetResourceCtxAPIExt ¶
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 }
Click to show internal directories.
Click to hide internal directories.