Versions in this module Expand all Collapse all v0 v0.6.1 Jan 19, 2023 v0.6.0 Dec 29, 2022 Changes in this version type Property + Properties map[string]Property v0.5.0 Dec 22, 2022 Changes in this version + var DefaultApiFactory = ApiFactoryFn(func(referencer AuthServerReferencer) API { ... }) + var ErrNotFound = errors.New("not found") + func ConvertError(err error) error + func NewControlMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Control] + func NewCounterpartiesMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Counterparties] + func NewLedgerMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Ledger] + func NewMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Auth] + func NewPaymentsMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Payments] + func NewSearchMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Search] + func NewWalletsMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Wallets] + func NewWebhooksMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Webhooks] + type API interface + AddScopeToClient func(ctx context.Context, clientId, scopeId string) error + AddTransientScope func(ctx context.Context, scope, transientScope string) error + CreateClient func(ctx context.Context, options authclient.ClientOptions) (*authclient.Client, error) + CreateScope func(ctx context.Context, label string, metadata map[string]string) (*authclient.Scope, error) + DeleteClient func(ctx context.Context, id string) error + DeleteScope func(ctx context.Context, id string) error + DeleteScopeFromClient func(ctx context.Context, clientId, scopeId string) error + ListScopes func(ctx context.Context) (typeutils.Array[authclient.Scope], error) + ReadClient func(ctx context.Context, id string) (*authclient.Client, error) + ReadClientByMetadata func(ctx context.Context, metadata map[string]string) (*authclient.Client, error) + ReadScope func(ctx context.Context, id string) (*authclient.Scope, error) + ReadScopeByMetadata func(ctx context.Context, metadata map[string]string) (*authclient.Scope, error) + RemoveTransientScope func(ctx context.Context, scope, transientScope string) error + UpdateClient func(ctx context.Context, id string, options authclient.ClientOptions) error + UpdateScope func(ctx context.Context, id string, label string, metadata map[string]string) error + type APIFactory interface + Create func(referencer AuthServerReferencer) API + type ApiFactoryFn func(referencer AuthServerReferencer) API + func (fn ApiFactoryFn) Create(referencer AuthServerReferencer) API + type AuthServerReferencer interface + AuthServerReference func() string + type ControlMutator struct + Client client.Client + Scheme *runtime.Scheme + func (m *ControlMutator) Mutate(ctx context.Context, control *componentsv1beta2.Control) (*ctrl.Result, error) + func (m *ControlMutator) SetupWithBuilder(mgr ctrl.Manager, builder *ctrl.Builder) error + type CounterpartiesMutator struct + Scheme *runtime.Scheme + func (r *CounterpartiesMutator) Mutate(ctx context.Context, counterparties *componentsv1beta2.Counterparties) (*ctrl.Result, error) + func (r *CounterpartiesMutator) SetupWithBuilder(mgr ctrl.Manager, builder *ctrl.Builder) error + type DefaultApi struct + API *authclient.APIClient + func NewDefaultServerApi(api *authclient.APIClient) *DefaultApi + func (d *DefaultApi) AddScopeToClient(ctx context.Context, clientId, scopeId string) error + func (d *DefaultApi) AddTransientScope(ctx context.Context, scope, transientScope string) error + func (d *DefaultApi) CreateClient(ctx context.Context, options authclient.ClientOptions) (*authclient.Client, error) + func (d *DefaultApi) CreateScope(ctx context.Context, label string, metadata map[string]string) (*authclient.Scope, error) + func (d *DefaultApi) DeleteClient(ctx context.Context, id string) error + func (d *DefaultApi) DeleteScope(ctx context.Context, id string) error + func (d *DefaultApi) DeleteScopeFromClient(ctx context.Context, clientId, scopeId string) error + func (d *DefaultApi) ListScopes(ctx context.Context) (typeutils.Array[authclient.Scope], error) + func (d *DefaultApi) ReadClient(ctx context.Context, id string) (*authclient.Client, error) + func (d *DefaultApi) ReadClientByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Client, error) + func (d *DefaultApi) ReadScope(ctx context.Context, id string) (*authclient.Scope, error) + func (d *DefaultApi) ReadScopeByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Scope, error) + func (d *DefaultApi) RemoveTransientScope(ctx context.Context, scope, transientScope string) error + func (d *DefaultApi) UpdateClient(ctx context.Context, id string, options authclient.ClientOptions) error + func (d *DefaultApi) UpdateScope(ctx context.Context, id string, label string, metadata map[string]string) error + type DynamicTemplate map[string]interface + type InMemoryApi struct + func NewInMemoryAPI() *InMemoryApi + func (i *InMemoryApi) AddScopeToClient(ctx context.Context, clientId, scopeId string) error + func (i *InMemoryApi) AddTransientScope(ctx context.Context, scope, transientScope string) error + func (i *InMemoryApi) Client(name string) *authclient.Client + func (i *InMemoryApi) Clients() map[string]*authclient.Client + func (i *InMemoryApi) CreateClient(ctx context.Context, options authclient.ClientOptions) (*authclient.Client, error) + func (i *InMemoryApi) CreateScope(ctx context.Context, label string, metadata map[string]string) (*authclient.Scope, error) + func (i *InMemoryApi) DeleteClient(ctx context.Context, id string) error + func (i *InMemoryApi) DeleteScope(ctx context.Context, id string) error + func (i *InMemoryApi) DeleteScopeFromClient(ctx context.Context, clientId, scopeId string) error + func (i *InMemoryApi) ListScopes(ctx context.Context) (typeutils.Array[authclient.Scope], error) + func (i *InMemoryApi) ReadClient(ctx context.Context, id string) (*authclient.Client, error) + func (i *InMemoryApi) ReadClientByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Client, error) + func (i *InMemoryApi) ReadScope(ctx context.Context, id string) (*authclient.Scope, error) + func (i *InMemoryApi) ReadScopeByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Scope, error) + func (i *InMemoryApi) RemoveTransientScope(ctx context.Context, scope, transientScope string) error + func (i *InMemoryApi) Reset() + func (i *InMemoryApi) Scope(name string) *authclient.Scope + func (i *InMemoryApi) Scopes() map[string]*authclient.Scope + func (i *InMemoryApi) UpdateClient(ctx context.Context, id string, options authclient.ClientOptions) error + func (i *InMemoryApi) UpdateScope(ctx context.Context, id string, label string, metadata map[string]string) error + type LedgerMutator struct + Scheme *runtime.Scheme + func (r *LedgerMutator) Mutate(ctx context.Context, ledger *componentsv1beta2.Ledger) (*ctrl.Result, error) + func (r *LedgerMutator) SetupWithBuilder(mgr ctrl.Manager, builder *ctrl.Builder) error + type Mappings struct + DynamicTemplates []DynamicTemplate + Properties map[string]Property + func GetMapping() Mappings + type Mutator struct + Scheme *runtime.Scheme + func (r *Mutator) Mutate(ctx context.Context, auth *componentsv1beta2.Auth) (*ctrl.Result, error) + func (r *Mutator) SetupWithBuilder(mgr ctrl.Manager, builder *ctrl.Builder) error + type PaymentsMutator struct + Scheme *runtime.Scheme + func (r *PaymentsMutator) Mutate(ctx context.Context, payments *componentsv1beta2.Payments) (*ctrl.Result, error) + func (r *PaymentsMutator) SetupWithBuilder(mgr ctrl.Manager, builder *ctrl.Builder) error + type Property struct + CopyTo string + Enabled *bool + Store bool + Type string + type SearchMutator struct + Scheme *runtime.Scheme + func (r *SearchMutator) Mutate(ctx context.Context, search *componentsv1beta2.Search) (*ctrl.Result, error) + func (r *SearchMutator) SetupWithBuilder(mgr ctrl.Manager, builder *ctrl.Builder) error + type WalletsMutator struct + Scheme *runtime.Scheme + func (r *WalletsMutator) Mutate(ctx context.Context, wallets *componentsv1beta2.Wallets) (*ctrl.Result, error) + func (r *WalletsMutator) SetupWithBuilder(mgr ctrl.Manager, builder *ctrl.Builder) error + type WebhooksMutator struct + Scheme *runtime.Scheme + func (r *WebhooksMutator) Mutate(ctx context.Context, webhooks *componentsv1beta2.Webhooks) (*ctrl.Result, error) + func (r *WebhooksMutator) SetupWithBuilder(mgr ctrl.Manager, builder *ctrl.Builder) error