Documentation
¶
Index ¶
- func GetSyncID(ctx context.Context) string
- func SetSyncIDInContext(ctx context.Context, syncID string) context.Context
- type ClientWrapper
- type ConnectorClient
- type ConnectorServer
- type SessionCache
- type SessionCacheBag
- type SessionCacheConstructor
- type SessionCacheConstructorOption
- type SessionCacheKey
- type SessionCacheOption
- type SyncIDKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientWrapper ¶
type ClientWrapper interface {
C(ctx context.Context) (ConnectorClient, error)
Run(ctx context.Context, cfg *connectorwrapperV1.ServerConfig) error
Close() error
}
ClientWrapper is an interface that returns a connector client.
type ConnectorClient ¶
type ConnectorClient interface {
connectorV2.ResourceTypesServiceClient
connectorV2.ResourcesServiceClient
connectorV2.EntitlementsServiceClient
connectorV2.GrantsServiceClient
connectorV2.ConnectorServiceClient
connectorV2.AssetServiceClient
connectorV2.GrantManagerServiceClient
connectorV2.ResourceManagerServiceClient
connectorV2.ResourceDeleterServiceClient
connectorV2.AccountManagerServiceClient
connectorV2.CredentialManagerServiceClient
connectorV2.EventServiceClient
connectorV2.TicketsServiceClient
connectorV2.ActionServiceClient
connectorV2.ResourceGetterServiceClient
}
ConnectorClient is an interface for a type that implements all ConnectorV2 services.
type ConnectorServer ¶
type ConnectorServer interface {
connectorV2.ResourceTypesServiceServer
connectorV2.ResourcesServiceServer
connectorV2.EntitlementsServiceServer
connectorV2.GrantsServiceServer
connectorV2.ConnectorServiceServer
connectorV2.AssetServiceServer
connectorV2.GrantManagerServiceServer
connectorV2.ResourceManagerServiceServer
connectorV2.ResourceDeleterServiceServer
connectorV2.AccountManagerServiceServer
connectorV2.CredentialManagerServiceServer
connectorV2.EventServiceServer
connectorV2.TicketsServiceServer
connectorV2.ActionServiceServer
connectorV2.ResourceGetterServiceServer
}
ConnectorServer is an interface for a single type that implements all ConnectorV2 services.
type SessionCache ¶ added in v0.3.58
type SessionCache interface {
Get(ctx context.Context, key string, opt ...SessionCacheOption) ([]byte, bool, error)
GetMany(ctx context.Context, keys []string, opt ...SessionCacheOption) (map[string][]byte, error)
Set(ctx context.Context, key string, value []byte, opt ...SessionCacheOption) error
SetMany(ctx context.Context, values map[string][]byte, opt ...SessionCacheOption) error
Delete(ctx context.Context, key string, opt ...SessionCacheOption) error
Clear(ctx context.Context, opt ...SessionCacheOption) error
GetAll(ctx context.Context, opt ...SessionCacheOption) (map[string][]byte, error)
Close(ctx context.Context) error
}
SessionCache is an interface for caching session data.
type SessionCacheBag ¶ added in v0.3.58
SessionCacheBag holds the configuration for session cache operations.
type SessionCacheConstructor ¶ added in v0.3.58
type SessionCacheConstructor func(ctx context.Context, opt ...SessionCacheConstructorOption) (SessionCache, error)
SessionCacheConstructor is a function that creates a SessionCache instance.
type SessionCacheConstructorOption ¶ added in v0.3.58
SessionCacheConstructorOption is a function that modifies the context for session cache construction.
type SessionCacheKey ¶ added in v0.3.58
type SessionCacheKey struct{}
SessionCacheKey is the context key for storing the session cache instance.
type SessionCacheOption ¶ added in v0.3.58
type SessionCacheOption func(ctx context.Context, bag *SessionCacheBag) error
SessionCacheOption is a function that modifies a SessionCacheBag.
func WithSyncID ¶ added in v0.3.58
func WithSyncID(syncID string) SessionCacheOption
WithSyncID returns a SessionCacheOption that sets the sync ID for the operation.