k8sklient

package
v0.17.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescriptorClient

type DescriptorClient interface {
	List(ctx context.Context, listObjectGVK schema.GroupVersionKind, opts ...client.ListOption) (descriptors.ResultSetDescriptor, error)
}

type DescriptorsBasedLister

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

func NewDescriptorsBasedLister

func NewDescriptorsBasedLister(
	descriptorClient DescriptorClient,
	objectListMapper ObjectListMapper,
) *DescriptorsBasedLister

func (*DescriptorsBasedLister) List

type K8sKlient

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

func NewK8sKlient

func NewK8sKlient(
	namespaceRetriever NamespaceRetriever,
	userClientFactory authorization.UserClientFactory,
	lister Lister,
	scheme *runtime.Scheme,
) *K8sKlient

func (*K8sKlient) Create

func (k *K8sKlient) Create(ctx context.Context, obj client.Object) error

func (*K8sKlient) Delete

func (k *K8sKlient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (*K8sKlient) Get

func (k *K8sKlient) Get(ctx context.Context, obj client.Object) error

func (*K8sKlient) List

func (*K8sKlient) Patch

func (k *K8sKlient) Patch(ctx context.Context, obj client.Object, modify func() error) error

func (*K8sKlient) Watch

type Lister

type Lister interface {
	List(ctx context.Context, listObjectGVK schema.GroupVersionKind, listOpts repositories.ListOptions) (client.ObjectList, descriptors.PageInfo, error)
}

type NamespaceRetriever

type NamespaceRetriever interface {
	NamespaceFor(ctx context.Context, resourceGUID, resourceType string) (string, error)
}

type ObjectListMapper

type ObjectListMapper interface {
	GUIDsToObjectList(ctx context.Context, listObjectGVK schema.GroupVersionKind, orderedGUIDs []string) (client.ObjectList, error)
}

Directories

Path Synopsis
fake
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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