Documentation
¶
Index ¶
- Variables
- func NewConnectorClient(ctx context.Context, cc grpc.ClientConnInterface) types.ConnectorClient
- func NewWrapper(ctx context.Context, server interface{}, opts ...Option) (*wrapper, error)
- func Register(ctx context.Context, s grpc.ServiceRegistrar, srv types.ConnectorServer, ...)
- type Option
- func WithFullSyncDisabled() Option
- func WithProvisioningEnabled() Option
- func WithRateLimitDescriptor(entry *ratelimitV1.RateLimitDescriptors_Entry) Option
- func WithRateLimiterConfig(cfg *ratelimitV1.RateLimiterConfig) Option
- func WithTargetedSyncResourceIDs(resourceIDs []string) Option
- func WithTicketingEnabled() Option
- type RegisterOps
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnectorNotImplemented = errors.New("client does not implement connector connectorV2")
Functions ¶
func NewConnectorClient ¶ added in v0.2.71
func NewConnectorClient(ctx context.Context, cc grpc.ClientConnInterface) types.ConnectorClient
NewConnectorClient takes a grpc.ClientConnInterface and returns an implementation of the ConnectorClient interface. It does not check that the connection actually supports the services.
func NewWrapper ¶
NewConnectorWrapper returns a connector wrapper for running connector services locally.
func Register ¶ added in v0.2.71
func Register(ctx context.Context, s grpc.ServiceRegistrar, srv types.ConnectorServer, opts *RegisterOps)
Types ¶
type Option ¶
func WithFullSyncDisabled ¶ added in v0.2.15
func WithFullSyncDisabled() Option
func WithProvisioningEnabled ¶ added in v0.1.0
func WithProvisioningEnabled() Option
func WithRateLimitDescriptor ¶
func WithRateLimitDescriptor(entry *ratelimitV1.RateLimitDescriptors_Entry) Option
func WithRateLimiterConfig ¶
func WithRateLimiterConfig(cfg *ratelimitV1.RateLimiterConfig) Option
func WithTargetedSyncResourceIDs ¶ added in v0.3.0
func WithTicketingEnabled ¶ added in v0.1.36
func WithTicketingEnabled() Option
type RegisterOps ¶ added in v0.2.71
type RegisterOps struct {
Ratelimiter ratelimitV1.RateLimiterServiceServer
ProvisioningEnabled bool
TicketingEnabled bool
}
Click to show internal directories.
Click to hide internal directories.