k8s

package
v0.0.0-...-5ea7d2a Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sReferenceProvider

type K8sReferenceProvider struct {
	Config        K8sReferenceProviderConfig
	Client        *kubernetes.Clientset
	DynamicClient dynamic.Interface
	Context       *contexts.ManagerContext
}

func (*K8sReferenceProvider) Clone

func (*K8sReferenceProvider) Get

func (m *K8sReferenceProvider) Get(id string, namespace string, group string, kind string, version string, ref string) (interface{}, error)

func (*K8sReferenceProvider) ID

func (m *K8sReferenceProvider) ID() string

func (*K8sReferenceProvider) Init

func (*K8sReferenceProvider) InitWithMap

func (i *K8sReferenceProvider) InitWithMap(properties map[string]string) error

func (*K8sReferenceProvider) List

func (m *K8sReferenceProvider) List(labelSelector string, fieldSelector string, namespace string, group string, kind string, version string, ref string) (interface{}, error)

func (*K8sReferenceProvider) Reconfigure

func (m *K8sReferenceProvider) Reconfigure(config providers.IProviderConfig) error

func (*K8sReferenceProvider) ReferenceType

func (m *K8sReferenceProvider) ReferenceType() string

func (*K8sReferenceProvider) SetContext

func (a *K8sReferenceProvider) SetContext(context *contexts.ManagerContext)

func (*K8sReferenceProvider) TargetID

func (m *K8sReferenceProvider) TargetID() string

type K8sReferenceProviderConfig

type K8sReferenceProviderConfig struct {
	Name       string `json:"name"`
	ConfigPath string `json:"configPath"`
	InCluster  bool   `json:"inCluster"` //TODO: add context support
}

func K8sReferenceProviderConfigFromMap

func K8sReferenceProviderConfigFromMap(properties map[string]string) (K8sReferenceProviderConfig, error)

Jump to

Keyboard shortcuts

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