sparkapplication

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package sparkapplication manipulates the k8s api of sparkapplication object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*SparkApplication)

Option configures a SparkApplication

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

type SparkApplication

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

SparkApplication is the object to manipulate k8s api of SparkApplication

func New

func New(options ...Option) *SparkApplication

New news a SparkApplication

func (*SparkApplication) Create

Create creates a k8s SparkApplication object

func (*SparkApplication) CreateOrUpdate

func (s *SparkApplication) CreateOrUpdate(app *sparkv1beta2.SparkApplication) error

CreateOrUpdate create or update a k8s SparkApplication object

func (*SparkApplication) Delete

func (s *SparkApplication) Delete(namespace, name string) error

Delete deletes a k8s SparkApplication

func (*SparkApplication) DeleteIfExists

func (s *SparkApplication) DeleteIfExists(namespace, name string) error

DeleteIfExists delete if k8s SparkApplication exists

func (*SparkApplication) DeletePod

func (s *SparkApplication) DeletePod(namespace, name string) error

DeletePod deletes the spark driver & executor pods by labelSelector

func (*SparkApplication) Get

func (s *SparkApplication) Get(namespace, name string) (*sparkv1beta2.SparkApplication, error)

Get gets a k8s SparkApplication object

func (*SparkApplication) List

List lists SparkApplication under specific namespace

func (*SparkApplication) Update

Update updates a k8s SparkApplication

Jump to

Keyboard shortcuts

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