c1api

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTaskCancelled       = errors.New("task was cancelled")
	ErrTaskHeartbeatFailed = errors.New("task failed heartbeat")

	ErrTaskNonRetryable = errors.New("task failed and is non-retryable")
)

Functions

func NewListEventFeedsHandler added in v0.7.12

func NewListEventFeedsHandler(task *v1.Task, helpers listEventFeedsHelpers) *listEventFeedsHandler

func NewListEventsHandler added in v0.7.12

func NewListEventsHandler(task *v1.Task, helpers listEventsHelpers) *listEventsHandler

Types

type BatonServiceClient

type BatonServiceClient interface {
	GetTask(ctx context.Context, req *v1.BatonServiceGetTaskRequest) (*v1.BatonServiceGetTaskResponse, error)
	Heartbeat(ctx context.Context, req *v1.BatonServiceHeartbeatRequest) (*v1.BatonServiceHeartbeatResponse, error)
	FinishTask(ctx context.Context, req *v1.BatonServiceFinishTaskRequest) (*v1.BatonServiceFinishTaskResponse, error)
	Upload(ctx context.Context, task *v1.Task, r io.ReadSeeker) error
	// contains filtered or unexported methods
}

type BootstrappingTaskManager added in v0.9.1

type BootstrappingTaskManager interface {
	tasks.Manager
	Bootstrap(ctx context.Context, cc types.ConnectorClient) error
}

Bootstrap performs the startup Hello handshake with exponential backoff, retrying transient failures up to maxHelloBackoff and bailing on ctx cancel or known-permanent gRPC codes (auth, malformed, unimplemented, etc.). The runner is expected to call this exactly once after construction and before entering the task loop.

func NewC1TaskManager

func NewC1TaskManager(
	ctx context.Context,
	clientID string,
	clientSecret string,
	tempDir string,
	skipFullSync bool,
	externalC1Z string,
	externalResourceEntitlementIdFilter string,
	targetedSyncResources []*v2.Resource,
	syncResourceTypeIDs []string,
	workerCount int,
) (BootstrappingTaskManager, error)

Jump to

Keyboard shortcuts

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