Documentation
¶
Index ¶
- type Loader
- func (r *Loader) AddRef(ctx context.Context, spec *invv1alpha1.SchemaSpec)
- func (r *Loader) DelRef(ctx context.Context, key string) error
- func (r *Loader) GetRef(ctx context.Context, key string) (*invv1alpha1.SchemaSpec, bool, error)
- func (r *Loader) Load(ctx context.Context, key string, secretNSN types.NamespacedName) error
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, 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) GetRef ¶
func (r *Loader) GetRef(ctx context.Context, key string) (*invv1alpha1.SchemaSpec, bool, error)
GetRef return an error of the ref does not exist If the ref exists the ref is retrieved with an inidcation if the base provider schema version dir exists
Click to show internal directories.
Click to hide internal directories.