Documentation ¶
Index ¶
- Constants
- Variables
- func AddToContainer(c *restful.Container, clusterOperator cluster.Operator, op operation.Operator, ...) error
- func CreateBasic(serverURL, clusterName, userName string, caCert []byte) *clientcmdapi.Config
- func CreateWithToken(serverURL, clusterName, userName string, caCert []byte, token string) *clientcmdapi.Config
- func MarkToOriginNode(ctx context.Context, operator cluster.Operator, kcNodeID string) (*v1.Node, error)
- func SetupWebService(h *handler) *restful.WebService
- type ClusterUpgrade
- type PatchComponents
- type SSHCredential
- type StepLog
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 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 PatchComponents ¶
type SSHCredential ¶
Click to show internal directories.
Click to hide internal directories.