tokenrequest

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, opts Options) error

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.

Types

type ConnectorServiceClient

type ConnectorServiceClient interface {
	FetchToken(appName, tenant, group string) (*TokenDto, error)
}

ConnectorServiceClient interface describes client contract to communicate with connector-service

func NewConnectorServiceClient

func NewConnectorServiceClient(connectorServiceURL string) ConnectorServiceClient

NewConnectorServiceClient constucts new instance of connector service client

type Options

type Options struct {
	TokenTTL            int
	ConnectorServiceURL string
}

Options describes the parameters struct handed to tokenrequest reconciller

type ReconcileTokenRequest

type ReconcileTokenRequest struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileTokenRequest reconciles a TokenRequest object

func (*ReconcileTokenRequest) Reconcile

func (r *ReconcileTokenRequest) Reconcile(request reconcile.Request) (reconcile.Result, error)

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

type TokenDto struct {
	URL   string `json:"url"`
	Token string `json:"token"`
}

TokenDto represents data structure returned from connector-service

Jump to

Keyboard shortcuts

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