cluster

package
Version: v1.70.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 57 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KotsKubeVersion      = "1.22.1"
	KotsKustomizeVersion = "3.5.4"
)

Variables

This section is empty.

Functions

func BinRoot added in v1.50.2

func BinRoot(dataDir string) string

func ClientInit added in v1.50.2

func ClientInit(ctx context.Context, dataDir string) error

ClientInit will download all binaries for the cluster

func ClusterAuthnHandler

func ClusterAuthnHandler(w http.ResponseWriter, r *http.Request)

ClusterAuthn

func ClusterAuthzHandler

func ClusterAuthzHandler(w http.ResponseWriter, r *http.Request)

ClusterAuthz

func HealthzHandler

func HealthzHandler(w http.ResponseWriter, r *http.Request)

func JSON

func JSON(w http.ResponseWriter, code int, payload interface{})

func Start

func Start(ctx context.Context, slug string, dataDir string) (string, error)

Start will start the embedded cluster. This function blocks until the cluster control plane has started

func StartAuthnzServer

func StartAuthnzServer()

Types

type HealthzResponse

type HealthzResponse struct {
	Version string         `json:"version"`
	GitSHA  string         `json:"gitSha"`
	Status  StatusResponse `json:"status"`
}

type StatusResponse

type StatusResponse struct {
}

Jump to

Keyboard shortcuts

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