spark

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SuccessCondition = "status.applicationState.state in (" + strings.Join(successStates, ",") + ")"
	FailureCondition = "status.applicationState.state in (" + strings.Join(failureStates, ",") + ")"
)

Functions

func IsDone

func IsDone(sparkApp *sparkop.SparkApplication) bool

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(restConfig *rest.Config, namespace string) (*Client, error)

func (*Client) Delete

func (c *Client) Delete(appName string) (bool, error)

func (*Client) List

func (c *Client) List(opts *metav1.ListOptions) ([]sparkop.SparkApplication, error)

func (*Client) ListByLabel

func (c *Client) ListByLabel(labelKey string, labelValue string) ([]sparkop.SparkApplication, error)

func (*Client) ListByLabels

func (c *Client) ListByLabels(labels map[string]string) ([]sparkop.SparkApplication, error)

Jump to

Keyboard shortcuts

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