crd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCRDs

func GetCRDs(filesystem fs.FS) ([]*apiextensions.CustomResourceDefinition, error)

GetCRDs returns CRDs.

Types

type Decoder

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

Decoder decodes CRD objects.

func NewDecoder

func NewDecoder() (*Decoder, error)

NewDecoder creates a new Decoder.

func (*Decoder) Decode

func (d *Decoder) Decode(document []byte) (*apiextensions.CustomResourceDefinition, error)

Decode decodes the given YAML/JSON manifest into a CustomResourceDefinition.

type HubDecoder

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

HubDecoder decodes Traefik Hub Kubernetes objects.

func NewHubDecoder

func NewHubDecoder() (*HubDecoder, error)

NewHubDecoder creates a new HubDecoder.

func (*HubDecoder) Decode

func (d *HubDecoder) Decode(document []byte, into *unstructured.Unstructured) error

Decode decodes the given YAML/JSON.

Jump to

Keyboard shortcuts

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