models

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Client               kubernetes.Interface
	RadixClient          radixclient.Interface
	SecretProviderClient secretProviderClient.Interface
}

Account Holds kubernetes account sessions

func NewServiceAccount added in v1.7.1

func NewServiceAccount(inClusterClient kubernetes.Interface, inClusterRadixClient radixclient.Interface, inClusterSecretProviderClient secretProviderClient.Interface) Account

type Accounts

type Accounts struct {
	UserAccount    Account
	ServiceAccount Account
	// contains filtered or unexported fields
}

Accounts contains accounts for accessing k8s API.

func NewAccounts

func NewAccounts(
	inClusterClient kubernetes.Interface,
	inClusterRadixClient radixclient.Interface,
	inClusterSecretProviderClient secretProviderClient.Interface,
	outClusterClient kubernetes.Interface,
	outClusterRadixClient radixclient.Interface,
	outClusterSecretProviderClient secretProviderClient.Interface,
	token string,
	impersonation radixmodels.Impersonation) Accounts

NewAccounts creates a new Accounts struct

func (Accounts) GetUserAccountUserPrincipleName

func (accounts Accounts) GetUserAccountUserPrincipleName() (string, error)

GetUserAccountUserPrincipleName get the user principle name represented in UserAccount

type Controller

type Controller interface {
	GetRoutes() Routes
}

Controller Pattern of an rest/stream controller

type DefaultController

type DefaultController struct {
}

DefaultController Default implementation

type KubeApiConfig added in v1.14.2

type KubeApiConfig struct {
	QPS   float32
	Burst int
}

KubeApiConfig configuration for K8s API REST client

type RadixHandlerFunc

type RadixHandlerFunc func(Accounts, http.ResponseWriter, *http.Request)

RadixHandlerFunc Pattern for handler functions

type Route

type Route struct {
	Path                      string
	Method                    string
	HandlerFunc               RadixHandlerFunc
	AllowUnauthenticatedUsers bool
	KubeApiConfig             KubeApiConfig
}

Route Describe route

type Routes

type Routes []Route

Routes Holder of all routes

Jump to

Keyboard shortcuts

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