cluster

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = defaultConfig{
	// contains filtered or unexported fields
}

Functions

func DeleteTke

func DeleteTke(t *task)

DeleteTke Delete TKE Cluster

Types

type ActionTimer

type ActionTimer struct {
	Externals   Externals `json:"Externals"`
	TimerAction string    `json:"TimerAction"`
	ActionTime  string    `json:"ActionTime"`
}

type Cluster

type Cluster interface {
	Create() (string, error)
	Delete()
}

func NewDefaultVCluster

func NewDefaultVCluster() Cluster

func NewNothing

func NewNothing() Cluster

func NewTKE

func NewTKE() Cluster

func NewVCluster

func NewVCluster(addr, email, password string) Cluster

type CreateDevSpaceResponse

type CreateDevSpaceResponse struct {
	Code    int                    `json:"code"`
	Message string                 `json:"message"`
	Data    model.ClusterUserModel `json:"data"`
}

type DataDisks

type DataDisks struct {
	DiskType string `json:"DiskType"`
	DiskSize int    `json:"DiskSize"`
}

DataDisks struct

type DevSpaceDetailResponse

type DevSpaceDetailResponse struct {
	Code    int                                       `json:"code"`
	Message string                                    `json:"message"`
	Data    model.ClusterUserJoinClusterAndAppAndUser `json:"data"`
}

type DevSpaceStatus

type DevSpaceStatus struct {
	VirtualCluster VirtualClusterInfo `json:"virtual_cluster"`
}

type DevSpaceStatusResponse

type DevSpaceStatusResponse struct {
	Code    int                        `json:"code"`
	Message string                     `json:"message"`
	Data    map[uint64]*DevSpaceStatus `json:"data"`
}

type Externals

type Externals struct {
	ReleaseAddress bool `json:"ReleaseAddress"`
}

type InternetAccessible

type InternetAccessible struct {
	PublicIPAssigned        bool `json:"PublicIpAssigned"`
	InternetMaxBandwidthOut int  `json:"InternetMaxBandwidthOut"`
}

InternetAccessible struct

type Nothing

type Nothing struct {
}

func (Nothing) Create

func (n Nothing) Create() (string, error)

func (Nothing) Delete

func (n Nothing) Delete()

type Parameter

type Parameter struct {
	VirtualPrivateCloud VirtualPrivateCloud `json:"VirtualPrivateCloud"`
	Placement           Placement           `json:"Placement"`
	InstanceType        string              `json:"InstanceType"`
	SystemDisk          SystemDisk          `json:"SystemDisk"`
	DataDisks           []DataDisks         `json:"DataDisks"`
	InstanceCount       int                 `json:"InstanceCount"`
	InternetAccessible  InternetAccessible  `json:"InternetAccessible"`
	ActionTimer         ActionTimer         `json:"ActionTimer"`
}

Parameter struct

type Placement

type Placement struct {
	Zone string `json:"Zone"`
}

Placement struct

type SystemDisk

type SystemDisk struct {
	DiskType string `json:"DiskType"`
}

SystemDisk struct

type VirtualClusterInfo

type VirtualClusterInfo struct {
	Status      string             `json:"status"`
	Events      string             `json:"events,omitempty"`
	ServiceType corev1.ServiceType `json:"service_type"`
	Version     string             `json:"version"`
	Values      string             `json:"values"`
}

type VirtualPrivateCloud

type VirtualPrivateCloud struct {
	SubnetID string `json:"SubnetId"`
	VpcID    string `json:"VpcId"`
}

VirtualPrivateCloud struct

Jump to

Keyboard shortcuts

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