spark

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App added in v0.7.0

func App(spec *Spec) *sparkop.SparkApplication

func Map added in v0.7.0

Types

type Client

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

func New

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

func (*Client) Apply added in v0.7.0

func (c *Client) Apply(sparkApp *sparkop.SparkApplication) (*sparkop.SparkApplication, error)

func (*Client) Create added in v0.7.0

func (c *Client) Create(sparkApp *sparkop.SparkApplication) (*sparkop.SparkApplication, error)

func (*Client) Delete

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

func (*Client) Exists added in v0.7.0

func (c *Client) Exists(name string) (bool, error)

func (*Client) Get added in v0.7.0

func (c *Client) Get(name string) (*sparkop.SparkApplication, error)

func (*Client) IsRunning added in v0.7.0

func (c *Client) IsRunning(name string) (bool, error)

func (*Client) List

func (c *Client) List(opts *kmeta.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)

type Spec added in v0.7.0

type Spec struct {
	Name      string
	Namespace string
	Spec      sparkop.SparkApplicationSpec
	Labels    map[string]string
}

Jump to

Keyboard shortcuts

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