clusters

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo struct {
	Name                 string              `json:"name" required:"true"`
	AvailabilityZone     string              `json:"availability_zone" required:"true"`
	NetworkID            string              `json:"network_id" required:"true"`
	SubnetID             string              `json:"subnet_id,omitempty"`
	NodeGroups           []NodeGroupResponse `json:"node_groups" required:"true"`
	ClusterMode          string              `json:"cluster_mode" required:"true"`
	IPPool               string              `json:"ip_pool" required:"true"`
	Keypair              string              `json:"keypair,omitempty"`
	DeleteAfterDelay     int                 `json:"delete_after_delay,omitempty"`
	SuspendAfterDelay    int                 `json:"suspend_after_delay,omitempty"`
	SparkConfiguration   string              `json:"spark_configuration,omitempty"`
	EnvironmentVariables string              `json:"environment_variables,omitempty"`
}

type CreateOpts

type CreateOpts struct {
	Name                 string                `json:"name" required:"true"`
	AvailabilityZone     string                `json:"availability_zone" required:"true"`
	NetworkID            string                `json:"network_id" required:"true"`
	SubnetID             string                `json:"subnet_id,omitempty"`
	NodeGroups           []NodeGroupCreateOpts `json:"node_groups" required:"true"`
	ClusterMode          string                `json:"cluster_mode" required:"true"`
	Registry             RegistryCreateOpts    `json:"registry" required:"true"`
	IPPool               string                `json:"ip_pool" required:"true"`
	Keypair              string                `json:"keypair,omitempty"`
	DeleteAfterDelay     int                   `json:"delete_after_delay,omitempty"`
	SuspendAfterDelay    int                   `json:"suspend_after_delay,omitempty"`
	SparkConfiguration   string                `json:"spark_configuration,omitempty"`
	EnvironmentVariables string                `json:"environment_variables,omitempty"`
}

func (*CreateOpts) Map

func (opts *CreateOpts) Map() (map[string]interface{}, error)

type CreateResult

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

func Create

func Create(client *gophercloud.ServiceClient, opts OptsBuilder) (r CreateResult)

func (CreateResult) Extract

func (r CreateResult) Extract() (*Response, error)

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

func Delete

func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult)

type GetResult

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

func Get

func Get(client *gophercloud.ServiceClient, id string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*Response, error)

type NodeGroupCreateOpts

type NodeGroupCreateOpts struct {
	NodeCount          int    `json:"node_count,omitempty"`
	FlavorID           string `json:"flavor_id" required:"true"`
	AutoscalingEnabled bool   `json:"autoscaling_enabled" required:"true"`
	MinNodes           int    `json:"min_nodes,omitempty"`
	MaxNodes           int    `json:"max_nodes,omitempty"`
}

type NodeGroupResponse

type NodeGroupResponse struct {
	NodeCount          int    `json:"node_count,omitempty"`
	FlavorID           string `json:"flavor_id" required:"true"`
	AutoscalingEnabled bool   `json:"autoscaling_enabled" required:"true"`
	MinNodes           int    `json:"min_nodes,omitempty"`
	MaxNodes           int    `json:"max_nodes,omitempty"`
}

type OptsBuilder

type OptsBuilder interface {
	Map() (map[string]interface{}, error)
}

type RegistryCreateOpts

type RegistryCreateOpts struct {
	ExistingRegistryID string `json:"existing_registry_id" required:"true"`
}

type Response

type Response struct {
	ID                      string      `json:"id" required:"true"`
	Name                    string      `json:"name" required:"true"`
	Status                  string      `json:"status"`
	Info                    ClusterInfo `json:"info"`
	S3BucketName            string      `json:"s3_bucket_name"`
	DockerRegistryID        string      `json:"docker_registry_id" required:"true"`
	HistoryServerURL        string      `json:"history_server_url"`
	ControlInstanceID       string      `json:"control_instance_id"`
	InactiveMin             int         `json:"inactive_min"`
	SuspendAfterInactiveMin int         `json:"suspend_after_inactive_min"`
	DeleteAfterInactiveMin  int         `json:"delete_after_inactive_min"`
}

Jump to

Keyboard shortcuts

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