kubeclient

package
v2.0.0-...-a7294fb Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpecOnly      = CommitType("SpecOnly")
	SpecAndStatus = CommitType("SpecAndStatus")
)

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, commitType CommitType) error
}

func NewClient

func NewClient(client client.Client) Client

type CommitType

type CommitType string

Jump to

Keyboard shortcuts

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