Help us shape the future of Go! Take the 2026 Go Developer Survey

schema

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

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

func NewLoader

func NewLoader(tmpDir string, schemaDir string, credentialResolver auth.CredentialResolver) (*Loader, error)

func (*Loader) AddRef

func (r *Loader) AddRef(ctx context.Context, spec *invv1alpha1.SchemaSpec)

AddRef overwrites the provider schema version The schemaRef is immutable

func (*Loader) DelRef

func (r *Loader) DelRef(ctx context.Context, key string) error

DelRef deletes the provider schema version

func (*Loader) GetRef

func (r *Loader) GetRef(ctx context.Context, key string) (*invv1alpha1.SchemaSpec, bool, error)

GetRef return an error if the ref does not exist If the ref exists the ref is retrieved with an indication if the base provider schema version dir exists

func (*Loader) Load

func (r *Loader) Load(ctx context.Context, key string, credentialNSN types.NamespacedName) error

Jump to

Keyboard shortcuts

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