provider

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// Resource Operations
	// All operations support dry-run if the provider implementation supports it.
	// Dry-run can be enabled through provider-specific configuration options.
	GetK8sResources(kind, fieldSelector, labelSelector, namespace string) (interface{}, error)
	DeleteK8sResources(kind, name, namespace string) error
	CreateK8sResource(kind, name, namespace string, body interface{}) error
	PatchK8sResource(kind, name, namespace string, body interface{}) error

	// Schema Operations
	FindGVR(kind string) (schema.GroupVersionResource, error)
	GetOpenAPIResourceSpecs() (map[string][]string, error)
	CreateProviderForContext(context string) (Provider, error)
}

Provider defines the interface for different backend implementations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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