Documentation ¶
Index ¶
- Variables
- 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
- type APIFactory
- type ApiFactoryFn
- type AuthServerReferencer
- type ControlMutator
- type CounterpartiesMutator
- type 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
- type 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
- type Mappings
- type Mutator
- type PaymentsMutator
- type Property
- type SearchMutator
- type WalletsMutator
- type WebhooksMutator
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultApiFactory = ApiFactoryFn(func(referencer AuthServerReferencer) API { configuration := authclient.NewConfiguration() configuration.Servers = []authclient.ServerConfiguration{{ URL: fmt.Sprintf("http://%s-%s.%s.svc.cluster.local:8080", referencer.GetNamespace(), referencer.AuthServerReference(), referencer.GetNamespace()), }} return NewDefaultServerApi(authclient.NewAPIClient(configuration)) })
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func ConvertError ¶
func NewControlMutator ¶
func NewControlMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Control]
func NewCounterpartiesMutator ¶
func NewCounterpartiesMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Counterparties]
func NewLedgerMutator ¶
func NewLedgerMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Ledger]
func NewMutator ¶
func NewMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Auth]
func NewPaymentsMutator ¶
func NewPaymentsMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Payments]
func NewSearchMutator ¶
func NewSearchMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Search]
func NewWalletsMutator ¶
func NewWalletsMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Wallets]
func NewWebhooksMutator ¶
func NewWebhooksMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*componentsv1beta2.Webhooks]
Types ¶
type API ¶
type API interface { DeleteScope(ctx context.Context, id string) error ReadScope(ctx context.Context, id string) (*authclient.Scope, error) CreateScope(ctx context.Context, label string, metadata map[string]string) (*authclient.Scope, error) UpdateScope(ctx context.Context, id string, label string, metadata map[string]string) error ListScopes(ctx context.Context) (typeutils.Array[authclient.Scope], error) ReadScopeByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Scope, error) AddTransientScope(ctx context.Context, scope, transientScope string) error RemoveTransientScope(ctx context.Context, scope, transientScope string) error CreateClient(ctx context.Context, options authclient.ClientOptions) (*authclient.Client, error) UpdateClient(ctx context.Context, id string, options authclient.ClientOptions) error DeleteClient(ctx context.Context, id string) error ReadClient(ctx context.Context, id string) (*authclient.Client, error) ReadClientByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Client, error) AddScopeToClient(ctx context.Context, clientId, scopeId string) error DeleteScopeFromClient(ctx context.Context, clientId, scopeId string) error }
type APIFactory ¶
type APIFactory interface {
Create(referencer AuthServerReferencer) API
}
type ApiFactoryFn ¶
type ApiFactoryFn func(referencer AuthServerReferencer) API
func (ApiFactoryFn) Create ¶
func (fn ApiFactoryFn) Create(referencer AuthServerReferencer) API
type AuthServerReferencer ¶
type ControlMutator ¶
func (*ControlMutator) Mutate ¶
func (m *ControlMutator) Mutate(ctx context.Context, control *componentsv1beta2.Control) (*ctrl.Result, error)
func (*ControlMutator) SetupWithBuilder ¶
type CounterpartiesMutator ¶
CounterpartiesMutator reconciles a Auth object
func (*CounterpartiesMutator) Mutate ¶
func (r *CounterpartiesMutator) Mutate(ctx context.Context, counterparties *componentsv1beta2.Counterparties) (*ctrl.Result, error)
func (*CounterpartiesMutator) SetupWithBuilder ¶
SetupWithBuilder SetupWithManager sets up the controller with the Manager.
type DefaultApi ¶
type DefaultApi struct {
API *authclient.APIClient
}
func NewDefaultServerApi ¶
func NewDefaultServerApi(api *authclient.APIClient) *DefaultApi
func (*DefaultApi) AddScopeToClient ¶
func (d *DefaultApi) AddScopeToClient(ctx context.Context, clientId, scopeId string) error
func (*DefaultApi) AddTransientScope ¶
func (d *DefaultApi) AddTransientScope(ctx context.Context, scope, transientScope string) error
func (*DefaultApi) CreateClient ¶
func (d *DefaultApi) CreateClient(ctx context.Context, options authclient.ClientOptions) (*authclient.Client, error)
func (*DefaultApi) CreateScope ¶
func (d *DefaultApi) CreateScope(ctx context.Context, label string, metadata map[string]string) (*authclient.Scope, error)
func (*DefaultApi) DeleteClient ¶
func (d *DefaultApi) DeleteClient(ctx context.Context, id string) error
func (*DefaultApi) DeleteScope ¶
func (d *DefaultApi) DeleteScope(ctx context.Context, id string) error
func (*DefaultApi) DeleteScopeFromClient ¶
func (d *DefaultApi) DeleteScopeFromClient(ctx context.Context, clientId, scopeId string) error
func (*DefaultApi) ListScopes ¶
func (d *DefaultApi) ListScopes(ctx context.Context) (typeutils.Array[authclient.Scope], error)
func (*DefaultApi) ReadClient ¶
func (d *DefaultApi) ReadClient(ctx context.Context, id string) (*authclient.Client, error)
func (*DefaultApi) ReadClientByMetadata ¶
func (d *DefaultApi) ReadClientByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Client, error)
func (*DefaultApi) ReadScope ¶
func (d *DefaultApi) ReadScope(ctx context.Context, id string) (*authclient.Scope, error)
func (*DefaultApi) ReadScopeByMetadata ¶
func (d *DefaultApi) ReadScopeByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Scope, error)
func (*DefaultApi) RemoveTransientScope ¶
func (d *DefaultApi) RemoveTransientScope(ctx context.Context, scope, transientScope string) error
func (*DefaultApi) UpdateClient ¶
func (d *DefaultApi) UpdateClient(ctx context.Context, id string, options authclient.ClientOptions) error
func (*DefaultApi) UpdateScope ¶
type DynamicTemplate ¶
type DynamicTemplate map[string]interface{}
type InMemoryApi ¶
type InMemoryApi struct {
// contains filtered or unexported fields
}
func NewInMemoryAPI ¶
func NewInMemoryAPI() *InMemoryApi
func (*InMemoryApi) AddScopeToClient ¶
func (i *InMemoryApi) AddScopeToClient(ctx context.Context, clientId, scopeId string) error
func (*InMemoryApi) AddTransientScope ¶
func (i *InMemoryApi) AddTransientScope(ctx context.Context, scope, transientScope string) error
func (*InMemoryApi) Client ¶
func (i *InMemoryApi) Client(name string) *authclient.Client
func (*InMemoryApi) Clients ¶
func (i *InMemoryApi) Clients() map[string]*authclient.Client
func (*InMemoryApi) CreateClient ¶
func (i *InMemoryApi) CreateClient(ctx context.Context, options authclient.ClientOptions) (*authclient.Client, error)
func (*InMemoryApi) CreateScope ¶
func (i *InMemoryApi) CreateScope(ctx context.Context, label string, metadata map[string]string) (*authclient.Scope, error)
func (*InMemoryApi) DeleteClient ¶
func (i *InMemoryApi) DeleteClient(ctx context.Context, id string) error
func (*InMemoryApi) DeleteScope ¶
func (i *InMemoryApi) DeleteScope(ctx context.Context, id string) error
func (*InMemoryApi) DeleteScopeFromClient ¶
func (i *InMemoryApi) DeleteScopeFromClient(ctx context.Context, clientId, scopeId string) error
func (*InMemoryApi) ListScopes ¶
func (i *InMemoryApi) ListScopes(ctx context.Context) (typeutils.Array[authclient.Scope], error)
func (*InMemoryApi) ReadClient ¶
func (i *InMemoryApi) ReadClient(ctx context.Context, id string) (*authclient.Client, error)
func (*InMemoryApi) ReadClientByMetadata ¶
func (i *InMemoryApi) ReadClientByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Client, error)
func (*InMemoryApi) ReadScope ¶
func (i *InMemoryApi) ReadScope(ctx context.Context, id string) (*authclient.Scope, error)
func (*InMemoryApi) ReadScopeByMetadata ¶
func (i *InMemoryApi) ReadScopeByMetadata(ctx context.Context, metadata map[string]string) (*authclient.Scope, error)
func (*InMemoryApi) RemoveTransientScope ¶
func (i *InMemoryApi) RemoveTransientScope(ctx context.Context, scope, transientScope string) error
func (*InMemoryApi) Reset ¶
func (i *InMemoryApi) Reset()
func (*InMemoryApi) Scope ¶
func (i *InMemoryApi) Scope(name string) *authclient.Scope
func (*InMemoryApi) Scopes ¶
func (i *InMemoryApi) Scopes() map[string]*authclient.Scope
func (*InMemoryApi) UpdateClient ¶
func (i *InMemoryApi) UpdateClient(ctx context.Context, id string, options authclient.ClientOptions) error
func (*InMemoryApi) UpdateScope ¶
type LedgerMutator ¶
Mutator reconciles a Auth object
func (*LedgerMutator) Mutate ¶
func (r *LedgerMutator) Mutate(ctx context.Context, ledger *componentsv1beta2.Ledger) (*ctrl.Result, error)
func (*LedgerMutator) SetupWithBuilder ¶
SetupWithManager sets up the controller with the Manager.
type Mappings ¶
type Mappings struct { DynamicTemplates []DynamicTemplate `json:"dynamic_templates,omitempty"` Properties map[string]Property `json:"properties,omitempty"` }
func GetMapping ¶
func GetMapping() Mappings
type PaymentsMutator ¶
Mutator reconciles a Auth object
func (*PaymentsMutator) Mutate ¶
func (r *PaymentsMutator) Mutate(ctx context.Context, payments *componentsv1beta2.Payments) (*ctrl.Result, error)
func (*PaymentsMutator) SetupWithBuilder ¶
SetupWithManager sets up the controller with the Manager.
type SearchMutator ¶
Mutator reconciles a Auth object
func (*SearchMutator) Mutate ¶
func (r *SearchMutator) Mutate(ctx context.Context, search *componentsv1beta2.Search) (*ctrl.Result, error)
func (*SearchMutator) SetupWithBuilder ¶
SetupWithManager sets up the controller with the Manager.
type WalletsMutator ¶
WalletsMutator reconciles a Auth object
func (*WalletsMutator) Mutate ¶
func (r *WalletsMutator) Mutate(ctx context.Context, wallets *componentsv1beta2.Wallets) (*ctrl.Result, error)
func (*WalletsMutator) SetupWithBuilder ¶
SetupWithBuilder SetupWithManager sets up the controller with the Manager.
type WebhooksMutator ¶
WebhooksMutator reconciles a Auth object
func (*WebhooksMutator) Mutate ¶
func (r *WebhooksMutator) Mutate(ctx context.Context, webhooks *componentsv1beta2.Webhooks) (*ctrl.Result, error)
func (*WebhooksMutator) SetupWithBuilder ¶
SetupWithBuilder SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.