kubeapi

package
v0.0.0-...-9b2ac06 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	EnsureObject(ctx context.Context, cr metav1.Object, obj client.Object) error
	DeleteObject(ctx context.Context, obj client.Object) error
}

type APIClient

type APIClient struct {
	Client client.Client
	Scheme *runtime.Scheme
}

func NewAPIClient

func NewAPIClient(client client.Client, scheme *runtime.Scheme) *APIClient

func (*APIClient) DeleteObject

func (r *APIClient) DeleteObject(ctx context.Context, obj client.Object) error

func (*APIClient) EnsureObject

func (r *APIClient) EnsureObject(ctx context.Context, cr metav1.Object, obj client.Object) error

type FakeAPIClient

type FakeAPIClient struct {
	Operations []Operation
}

func NewFakeAPIClient

func NewFakeAPIClient() *FakeAPIClient

func (*FakeAPIClient) DeleteObject

func (a *FakeAPIClient) DeleteObject(_ context.Context, obj client.Object) error

func (*FakeAPIClient) EnsureObject

func (a *FakeAPIClient) EnsureObject(_ context.Context, _ metav1.Object, obj client.Object) error

type Operation

type Operation struct {
	Action string
	GVK    schema.GroupVersionKind
}

Jump to

Keyboard shortcuts

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