Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenMapper ¶
type AccessTokenMapper struct { Name string `json:"name"` Token string `json:"token"` ServiceProviderUrl string `json:"serviceProviderUrl"` ServiceProviderUserName string `json:"serviceProviderUserName"` ServiceProviderUserId string `json:"serviceProviderUserId"` UserId string `json:"userId"` ExpiredAfter *uint64 `json:"expiredAfter"` Scopes []string `json:"scopes"` }
AccessTokenMapper is a helper to convert token (together with its metadata) into maps suitable for storing in secrets according to the secret type.
type ReconcileError ¶
type ReconcileError struct {
// contains filtered or unexported fields
}
ReconcileError is just a common error type for reconciliation errors that contains a cause and can be unwrapped so that a full stacktrace is produced in the logs.
func NewReconcileError ¶
func NewReconcileError(err error, format string, args ...interface{}) *ReconcileError
func (*ReconcileError) Error ¶
func (e *ReconcileError) Error() string
func (*ReconcileError) Unwrap ¶
func (e *ReconcileError) Unwrap() error
type SPIAccessTokenBindingReconciler ¶
type SPIAccessTokenBindingReconciler struct { client.Client Scheme *runtime.Scheme TokenStorage tokenstorage.TokenStorage ServiceProviderFactory serviceprovider.Factory // contains filtered or unexported fields }
SPIAccessTokenBindingReconciler reconciles a SPIAccessTokenBinding object
func (*SPIAccessTokenBindingReconciler) SetupWithManager ¶
func (r *SPIAccessTokenBindingReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type SPIAccessTokenReconciler ¶
type SPIAccessTokenReconciler struct { client.Client Scheme *runtime.Scheme TokenStorage tokenstorage.TokenStorage Configuration config.Configuration ServiceProviderFactory serviceprovider.Factory // contains filtered or unexported fields }
SPIAccessTokenReconciler reconciles a SPIAccessToken object
func (*SPIAccessTokenReconciler) Reconcile ¶
func (r *SPIAccessTokenReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*SPIAccessTokenReconciler) SetupWithManager ¶
func (r *SPIAccessTokenReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.