connector

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceTypeWorkspace = "WORKSPACE"
	ResourceTypeSource    = "SOURCE"
	ResourceTypeWarehouse = "WAREHOUSE"
	ResourceTypeFunction  = "FUNCTION"
	ResourceTypeSpace     = "SPACE"
)

Resource type constants for permission scoping.

Variables

This section is empty.

Functions

func New

New returns a new instance of the connector.

Types

type Connector added in v0.1.0

type Connector struct {
	// contains filtered or unexported fields
}

func (*Connector) Asset added in v0.1.0

func (c *Connector) 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.

func (*Connector) Metadata added in v0.1.0

func (c *Connector) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

Metadata returns metadata about the connector.

func (*Connector) ResourceSyncers added in v0.1.0

func (c *Connector) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncerV2

ResourceSyncers returns a ResourceSyncer for each resource type that should be synced. Workspace is first as it's the parent resource for all others.

func (*Connector) Validate added in v0.1.0

func (c *Connector) Validate(ctx context.Context) (annotations.Annotations, error)

Validate is called to ensure that the connector is properly configured.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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