loader

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

Documentation

Overview

Package loader provides facilities for loading CRDs and XRDs from various sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractObjects

func ExtractObjects(reader io.Reader) ([]runtime.Object, error)

ExtractObjects returns runtime objects from the supplied reader that is assumed to have one or more YAML documents.

func LoadReader

func LoadReader(reader io.Reader) (*resource.Schemas, error)

LoadReader returns schemas found in the supplied reader.

Types

type CrossplanePackage

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

CrossplanePackage loads schemas from crossplane packages gotten from an OCI registry.

func NewCrossplanePackage

func NewCrossplanePackage(imageRef string) *CrossplanePackage

NewCrossplanePackage creates a CrossplanePackage

func (*CrossplanePackage) ExtractObjects

func (p *CrossplanePackage) ExtractObjects() ([]runtime.Object, error)

func (*CrossplanePackage) Load

func (p *CrossplanePackage) Load() (*resource.Schemas, error)

type File

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

File loads schemas from YAML files.

func NewFile

func NewFile(file string) *File

NewFile returns a loader that loads schemas from a YAML file that can contains multiple YAML documents each representing a CRD.

func (*File) Load

func (f *File) Load() (*resource.Schemas, error)

Load returns schemas found in the YAML file.

Jump to

Keyboard shortcuts

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