connector

package
v0.3.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

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

func NewWrapper(ctx context.Context, server interface{}, opts ...Option) (*wrapper, error)

NewConnectorWrapper returns a connector wrapper for running connector services locally.

func Register added in v0.2.71

Types

type Option

type Option func(ctx context.Context, w *wrapper) error

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 WithTargetedSyncResourceIDs(resourceIDs []string) Option

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL