kubeclient

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreNotFound

func IgnoreNotFound(err error) error

func IgnoreNotFoundAndConflict

func IgnoreNotFoundAndConflict(err error) error

func IsNotFoundOrConflict

func IsNotFoundOrConflict(err error) bool

func NewAndIndexer

func NewAndIndexer(indexers ...client.FieldIndexer) client.FieldIndexer

Types

type Client

type Client interface {
	client.Client

	GetObject(ctx context.Context, namespacedName types.NamespacedName, gvk schema.GroupVersionKind) (client.Object, error)
	GetObjectOrDefault(ctx context.Context, namespacedName types.NamespacedName, gvk schema.GroupVersionKind) (client.Object, error)
	CommitObject(ctx context.Context, obj client.Object) error
}

func NewClient

func NewClient(client client.Client) Client

Jump to

Keyboard shortcuts

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