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.
Click to show internal directories.
Click to hide internal directories.