registartion

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesInfo

type KubernetesInfo struct {
	Namespace     string `json:"namespace"`
	ServerVersion string `json:"serverVersion"`
}

type Reg

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

func New

func New() *Reg

func (*Reg) CreateReg

func (s *Reg) CreateReg() func(w http.ResponseWriter, r *http.Request)

func (*Reg) GetInstructions

func (s *Reg) GetInstructions() func(w http.ResponseWriter, r *http.Request)

func (*Reg) KubeconfigHandler

func (s *Reg) KubeconfigHandler() func(w http.ResponseWriter, r *http.Request)

func (*Reg) ListRegs

func (s *Reg) ListRegs() func(w http.ResponseWriter, r *http.Request)

type Registration

type Registration struct {
	User         User           `json:"user"`
	Kubernetes   KubernetesInfo `json:"kubernetes"`
	Instructions string         `json:"instructions"`
	common_http.Response
}

func (*Registration) Bind

func (reg *Registration) Bind(r *http.Request) error

type User

type User struct {
	Email string `json:"email"`
	Id    string `json:"id"`
}

Jump to

Keyboard shortcuts

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