Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterModel

type ClusterModel struct {
	NewCluster

	/* URL to the spark master

	Required: true
	*/
	MasterURL *string `json:"masterUrl"`

	/* Route to the spark master web UI
	 */
	MasterWebRoute string `json:"masterWebRoute,omitempty"`

	/* URL to the spark master web UI

	Required: true
	*/
	MasterWebURL *string `json:"masterWebUrl"`

	/* Pods that make up the cluster

	Required: true
	*/
	Pods []*ClusterModelPodsItems0 `json:"pods"`

	/* Current status for the cluster

	Required: true
	*/
	Status *string `json:"status"`
}

ClusterModel cluster model

swagger:model ClusterModel

func (*ClusterModel) Validate

func (m *ClusterModel) Validate(formats strfmt.Registry) error

Validate validates this cluster model

type ClusterModelPodsItems0

type ClusterModelPodsItems0 struct {

	/* IP address of the pod

	Required: true
	*/
	IP *string `json:"ip"`

	/* Pod status

	Required: true
	*/
	Status *string `json:"status"`

	/* Type of pod

	Required: true
	*/
	Type *string `json:"type"`
}

ClusterModelPodsItems0 cluster model pods items0

swagger:model ClusterModelPodsItems0

func (*ClusterModelPodsItems0) Validate

func (m *ClusterModelPodsItems0) Validate(formats strfmt.Registry) error

Validate validates this cluster model pods items0

type ErrorModel

type ErrorModel struct {

	/* An explanation of the specific error that has occurred

	Required: true
	*/
	Details *string `json:"details"`

	/* HTTP status code

	Required: true
	*/
	Status *int32 `json:"status"`

	/* A brief summary of the error, this should remain consistent
	between errors of the same class

	Required: true
	*/
	Title *string `json:"title"`
}

ErrorModel error model

swagger:model ErrorModel

func (*ErrorModel) Validate

func (m *ErrorModel) Validate(formats strfmt.Registry) error

Validate validates this error model

type ErrorResponse

type ErrorResponse struct {

	/* List of errors returned

	Required: true
	Min Items: 1
	*/
	Errors []*ErrorModel `json:"errors"`
}

ErrorResponse error response

swagger:model ErrorResponse

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type NewCluster

type NewCluster struct {

	/* config
	 */
	Config *NewClusterConfig `json:"config,omitempty"`

	/* Unique name for the cluster

	Required: true
	*/
	Name *string `json:"name"`
}

NewCluster new cluster

swagger:model NewCluster

func (*NewCluster) Validate

func (m *NewCluster) Validate(formats strfmt.Registry) error

Validate validates this new cluster

type NewClusterConfig

type NewClusterConfig struct {

	/* If true (which is the default), cluster create will also expose the Spark Web UI
	 */
	ExposeWebUI string `json:"exposeWebUI,omitempty"`

	/* The count of master nodes requested in the cluster (must be > 0)
	 */
	MasterCount *int64 `json:"masterCount,omitempty"`

	/* Enable spark metrics, true or false (default is false)
	 */
	Metrics string `json:"metrics,omitempty"`

	/* The name of a stored cluster configuration
	 */
	Name string `json:"name,omitempty"`

	/* The docker pull specification of a custom image to use for spark pods
	 */
	SparkImage string `json:"sparkImage,omitempty"`

	/* The name of a ConfigMap which holds spark configuration files for the master
	 */
	SparkMasterConfig string `json:"sparkMasterConfig,omitempty"`

	/* The name of a ConfigMap which holds spark configuration files for the workers
	 */
	SparkWorkerConfig string `json:"sparkWorkerConfig,omitempty"`

	/* The count of worker nodes requested in the cluster (must be > 0)
	 */
	WorkerCount *int64 `json:"workerCount,omitempty"`
}

NewClusterConfig Cluster configuration values

swagger:model NewClusterConfig

func (*NewClusterConfig) Validate

func (m *NewClusterConfig) Validate(formats strfmt.Registry) error

Validate validates this new cluster config

type SingleCluster

type SingleCluster struct {

	/* cluster
	 */
	Cluster *ClusterModel `json:"cluster,omitempty"`
}

SingleCluster single cluster

swagger:model SingleCluster

func (*SingleCluster) Validate

func (m *SingleCluster) Validate(formats strfmt.Registry) error

Validate validates this single cluster

Jump to

Keyboard shortcuts

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