cluster

package
v1.52.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

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