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
}
Account Holds kubernetes account sessions
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, outClusterClient kubernetes.Interface, outClusterRadixClient radixclient.Interface, token string, impersonation Impersonation) Accounts
NewAccounts creates a new Accounts struct
func (Accounts) GetUserAccountUserPrincipleName ¶
GetUserAccountUserPrincipleName get the user principle name represented in UserAccount
type Controller ¶
type Controller interface {
GetRoutes() Routes
}
Controller Pattern of an rest/stream controller
type Impersonation ¶
Impersonation holds user and group to impersonate
func NewImpersonation ¶
func NewImpersonation(user, group string) (Impersonation, error)
NewImpersonation Constructor
func (Impersonation) PerformImpersonation ¶
func (impersonation Impersonation) PerformImpersonation() bool
PerformImpersonation Impersonate user
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
}
Route Describe route
Click to show internal directories.
Click to hide internal directories.