schema

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 3

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, schema *invv1alpha1.Schema)

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.Schema, 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) error

Jump to

Keyboard shortcuts

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