connector

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MonitorIntegrationEntitlement = "monitor"
	ManageIntegrationEntitlement  = "manage"
)
View Source
const (
	MonitorAllRole    = "monitor"
	ManageAllRole     = "manage"
	AdministratorRole = "administrator"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Celigo

type Celigo struct {
	Client *celigo.Client
}

func New

func New(ctx context.Context, accessToken, region string) (*Celigo, error)

New returns a new instance of the connector.

func (*Celigo) Asset

func (d *Celigo) Asset(ctx context.Context, asset *v2.AssetRef) (string, io.ReadCloser, error)

Asset takes an input AssetRef and attempts to fetch it using the connector's authenticated http client It streams a response, always starting with a metadata object, following by chunked payloads for the asset.

func (*Celigo) Metadata

func (d *Celigo) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

Metadata returns metadata about the connector.

func (*Celigo) ResourceSyncers

func (d *Celigo) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer

ResourceSyncers returns a ResourceSyncer for each resource type that should be synced from the upstream service.

func (*Celigo) Validate

func (d *Celigo) Validate(ctx context.Context) (annotations.Annotations, error)

Validate is called to ensure that the connector is properly configured. It should exercise any API credentials to be sure that they are valid.

Jump to

Keyboard shortcuts

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