kubepartitioner

package
v0.0.0-...-1acf6b1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKubeResourceClient

func NewKubeResourceClient(dynamicClient dynamic.Interface, gvks []schema.GroupVersionKind, config *rest.Config) models.ResourcesClient

Types

type KubeResource

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

func NewKubeResource

func NewKubeResource(resource *unstructured.Unstructured, config *rest.Config, dynamicClient dynamic.Interface) *KubeResource

func (*KubeResource) GetOwnerNodeForPartitionerId

func (k *KubeResource) GetOwnerNodeForPartitionerId(partitionerId string) string

func (*KubeResource) GetResourcePartitionKeyForPartitionerId

func (k *KubeResource) GetResourcePartitionKeyForPartitionerId(partitionerId string) (error, string)

func (*KubeResource) GetUnstructured

func (k *KubeResource) GetUnstructured() *unstructured.Unstructured

func (*KubeResource) SetOwnerNodeForPartitionerId

func (k *KubeResource) SetOwnerNodeForPartitionerId(partitionerId string, owner string) error

Jump to

Keyboard shortcuts

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