Documentation
¶
Index ¶
- Constants
- func New(ctx context.Context, connectorConfig *cfg.Segment, cliOpts *cli.ConnectorOpts) (connectorbuilder.ConnectorBuilderV2, []connectorbuilder.Opt, error)
- type Connector
- func (c *Connector) Asset(ctx context.Context, asset *v2.AssetRef) (string, io.ReadCloser, error)
- func (c *Connector) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)
- func (c *Connector) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncerV2
- func (c *Connector) Validate(ctx context.Context) (annotations.Annotations, error)
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 ¶
func New(ctx context.Context, connectorConfig *cfg.Segment, cliOpts *cli.ConnectorOpts, ) (connectorbuilder.ConnectorBuilderV2, []connectorbuilder.Opt, error, )
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
Asset takes an input AssetRef and attempts to fetch it using the connector's authenticated http client.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.