schema

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 13 Imported by: 2

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

type RepoMgr added in v0.0.43

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

func NewRepoMgr added in v0.0.43

func NewRepoMgr() *RepoMgr

NewRepoMgr initializes a new RepoMgr

func (*RepoMgr) GetOrAdd added in v0.0.43

func (r *RepoMgr) GetOrAdd(url string) *semaphore.Weighted

getOrAdd returns the semaphore for a repository, adding it if necessary

Jump to

Keyboard shortcuts

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