client

package
v0.0.0-...-e07045a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: BSD-3-Clause, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)

TODO: make this private so that we don't expose RESTClient once operator code uses this client instead of REST calls

Types

type NatsClusterCR

type NatsClusterCR interface {
	// Create creates a NATS cluster CR with the desired CR
	Create(ctx context.Context, cl *v1alpha2.NatsCluster) (*v1alpha2.NatsCluster, error)

	// Get returns the specified NATS cluster CR
	Get(ctx context.Context, namespace, name string) (*v1alpha2.NatsCluster, error)

	// Delete deletes the specified NATS cluster CR
	Delete(ctx context.Context, namespace, name string) error

	// Update updates the NATS cluster CR.
	Update(ctx context.Context, natsCluster *v1alpha2.NatsCluster) (*v1alpha2.NatsCluster, error)
}

func NewCRClient

func NewCRClient(cfg *rest.Config) (NatsClusterCR, error)

Directories

Path Synopsis
clientset
versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
versioned/typed/nats/v1alpha2
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
versioned/typed/nats/v1alpha2/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
informers
listers

Jump to

Keyboard shortcuts

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