crd

package
v0.0.0-...-965667f Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Plural    = "sparkapplications"
	Singular  = "sparkapplication"
	ShortName = "sparkapp"
	Group     = v1alpha1.GroupName
	Version   = "v1alpha1"
	FullName  = Plural + "." + Group
)

CRD metadata.

Variables

This section is empty.

Functions

func CreateCRD

func CreateCRD(clientset apiextensionsclient.Interface) error

CreateCRD creates a Kubernetes CustomResourceDefinition (CRD) for SparkApplication. An error is returned if it fails to create the CustomResourceDefinition before it times out.

Types

type ClientInterface

type ClientInterface interface {
	RESTClient() rest.Interface
	Create(app *v1alpha1.SparkApplication) (*v1alpha1.SparkApplication, error)
	Delete(name string, namespace string) error
	Get(name string, namespace string) (*v1alpha1.SparkApplication, error)
	Update(app *v1alpha1.SparkApplication) (*v1alpha1.SparkApplication, error)
	UpdateStatus(app *v1alpha1.SparkApplication) (*v1alpha1.SparkApplication, error)
}

ClientInterface is the interface for client implementations for talking to the API server for CRUD operations on the SparkApplication custom resource objects.

func NewClient

func NewClient(cfg *rest.Config) (ClientInterface, error)

NewClient creates a new real client for the SparkApplication CRD.

func NewFakeClient

func NewFakeClient() ClientInterface

NewFakeClient returns a fake client implementation for testing.

Jump to

Keyboard shortcuts

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