Discover Packages
github.com/Szymongib/kyma
components
connection-token-handler
pkg
controller
tokenrequest
package
Version:
v0.0.0-...-affaa53
Opens a new window with list of versions in this module.
Published: Jun 28, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Add creates a new TokenRequest Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller
and Start it when the Manager is Started.
type ConnectorServiceClient interface {
FetchToken(appName, tenant, group string ) (*TokenDto , error )
}
ConnectorServiceClient interface describes client contract to communicate with connector-service
NewConnectorServiceClient constucts new instance of connector service client
type Options struct {
TokenTTL int
ConnectorServiceURL string
}
Options describes the parameters struct handed to tokenrequest reconciller
ReconcileTokenRequest reconciles a TokenRequest object
Reconcile reads that state of the cluster for a TokenRequest object and makes changes based on the state read
and what is in the TokenRequest.Spec
type TokenDto struct {
URL string `json:"url"`
Token string `json:"token"`
}
TokenDto represents data structure returned from connector-service
Source Files
¶
Click to show internal directories.
Click to hide internal directories.