crds

package
v0.2.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package crds provides schema information for CRDs and XRDs that are used in function-hcl compositions. For each open document, it tries and discovers CRD information that the user has captured in a set of files and provides dynamic schemas for these types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(sourcesFile string, deleteCache bool) error

Download processes the offline source definition and downloads a list of images on to the filesystem.

Types

type CRDs

type CRDs struct {
	// contains filtered or unexported fields
}

CRDs provides schemas for CRDs and XRDs.

func New

func New(c Config) *CRDs

New creates an instance of the CRD discovery feature.

func (*CRDs) DynamicSchemas

func (c *CRDs) DynamicSchemas(path string) *resource.Schemas

DynamicSchemas returns the schemas loaded for the supplied module directory path.

func (*CRDs) Start

func (c *CRDs) Start(ctx context.Context)

Start starts background event processing. The background routine terminates when the context is canceled.

type Config

type Config struct {
	EventBus *eventbus.EventBus
}

Config configures the feature.

Directories

Path Synopsis
Package store provides a self-managing CRD store and implements background CRD discovery.
Package store provides a self-managing CRD store and implements background CRD discovery.

Jump to

Keyboard shortcuts

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