kubeconfig

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(provisionerClient provisioner.Client) *Builder

func (*Builder) Build

func (b *Builder) Build(instance *internal.Instance) (string, error)

func (*Builder) BuildFromAdminKubeconfig

func (b *Builder) BuildFromAdminKubeconfig(instance *internal.Instance, adminKubeconfig string) (string, error)

type Config

type Config struct {
	AllowOrigins string
}

type ErrorResponse

type ErrorResponse struct {
	Error string
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(storage storage.BrokerStorage, b KcBuilder, origins string, log logrus.FieldLogger) *Handler

func (*Handler) AttachRoutes

func (h *Handler) AttachRoutes(router *mux.Router)

func (*Handler) GetKubeconfig

func (h *Handler) GetKubeconfig(w http.ResponseWriter, r *http.Request)

type KcBuilder

type KcBuilder interface {
	Build(*internal.Instance) (string, error)
	BuildFromAdminKubeconfig(instance *internal.Instance, adminKubeconfig string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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