v1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParameterMsg   = "msg"
	ParameterToken = "token"
	ParameterCols  = "cols"
	ParameterRows  = "rows"
)
View Source
const (
	CoreClusterTag = "Core-Cluster"
	CoreNodeTag    = "Core-Node"
	CoreRegionTag  = "Core-Region"
)

Variables

View Source
var (
	ErrNodesRegionDifferent = errors.New("nodes belongs to different region")
)
View Source
var GroupVersion = schema.GroupVersion{Group: corev1.GroupName, Version: "v1"}

Functions

func AddToContainer

func AddToContainer(c *restful.Container, clusterOperator cluster.Operator,
	op operation.Operator, platform platform.Operator, leaseOperator lease.Operator,
	coreOperator core.Operator, delivery service.IDelivery, tokenOperator auth.TokenManagementInterface,
	conf *generic.ServerRunOptions, terminationChan *chan struct{}) error

func CreateBasic added in v1.4.0

func CreateBasic(serverURL, clusterName, userName string, caCert []byte) *clientcmdapi.Config

CreateBasic creates a basic, general KubeConfig object that then can be extended Copy from k8s.io/kubernetes/cmd/kubeadm/app/util/kubeconfig/kubeconfig.go

func CreateWithToken added in v1.4.0

func CreateWithToken(serverURL, clusterName, userName string, caCert []byte, token string) *clientcmdapi.Config

CreateWithToken creates a KubeConfig object with access to the API server with a token Copy from k8s.io/kubernetes/cmd/kubeadm/app/util/kubeconfig/kubeconfig.go

func MarkToOriginNode added in v1.3.1

func MarkToOriginNode(ctx context.Context, operator cluster.Operator, kcNodeID string) (*v1.Node, error)

func SetupWebService

func SetupWebService(h *handler) *restful.WebService

this is how set up web service route only in that case cli tool can simply call it to get api route by pass in a nil parameter

Types

type ClusterUpgrade

type ClusterUpgrade struct {
	Version       string `json:"version"`
	Offline       bool   `json:"offline"`
	LocalRegistry string `json:"localRegistry"`
}

type PatchComponents

type PatchComponents struct {
	Uninstall bool           `json:"uninstall"`
	Addons    []corev1.Addon `json:"addons"`
}

type SSHCredential

type SSHCredential struct {
	Username []byte `json:"username"`
	Password []byte `json:"password"`
	Port     int    `json:"port"`
}

type StepLog

type StepLog struct {
	Content      string          `json:"content,omitempty"`
	Node         string          `json:"node,omitempty"`
	Timeout      metav1.Duration `json:"timeout,omitempty"`
	Status       string          `json:"status,omitempty"`
	DeliverySize int64           `json:"deliverySize,omitempty"`
	LogSize      int64           `json:"logSize,omitempty"`
}

Jump to

Keyboard shortcuts

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