endpoints

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	// these are not ac
	Address     string `json:"address"`     // combined hostname + /paths
	Class       string `json:"class"`       // name of the ingress path
	HTTPS       bool   `json:"https"`       // https
	Oauth2proxy bool   `json:"oauth2proxy"` // if its secured by an oauth2proxy
	Description string `json:"description"` // if we can match this to an app, we can propogate this
	Name        string `json:"name"`        // Application name
	Icon        string `json:"icon"`        // Appropriate file name for the Icon
}

Endpoint is for the metadata returned to the browser/frontend

func ReallyAssemble

func ReallyAssemble(
	logger *log.Logger,
	clientSet *kubernetes.Clientset,
	landerAnnotationRoot string,
) []Endpoint

type RouteMetaData

type RouteMetaData struct {
	Hostname    string `json:"hostname"`
	Path        string `json:"path"`
	Namespace   string `json:"ns"`
	Service     string `json:"svc"`
	Oauth2proxy bool   `json:"oauth2proxy"` // if its secured by an oauth2proxy
	Class       string `json:"class"`
}

RouteMetaData is some metadata to be used to represent traffic

func AssembleRouteMetaData

func AssembleRouteMetaData(
	logger *log.Logger,
	clientSet *kubernetes.Clientset,
) []RouteMetaData

Jump to

Keyboard shortcuts

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