Documentation
¶
Index ¶
- func NewLambdaConnector(ctx context.Context, ac *cfg.Trello, _ *cli.ConnectorOpts) (connectorbuilder.ConnectorBuilderV2, []connectorbuilder.Opt, error)
- type Connector
- func (d *Connector) Asset(_ context.Context, _ *v2.AssetRef) (string, io.ReadCloser, error)
- func (d *Connector) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)
- func (d *Connector) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncerV2
- func (d *Connector) Validate(_ context.Context) (annotations.Annotations, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLambdaConnector ¶ added in v0.1.0
func NewLambdaConnector(ctx context.Context, ac *cfg.Trello, _ *cli.ConnectorOpts) (connectorbuilder.ConnectorBuilderV2, []connectorbuilder.Opt, error)
NewLambdaConnector returns a new ConnectorBuilderV2 suitable for use with RunConnector.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, apiKey string, apiToken string, orgs []string, baseURL string) (*Connector, error)
New returns a new instance of the connector.
func (*Connector) Asset ¶
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 (*Connector) ResourceSyncers ¶
func (d *Connector) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncerV2
ResourceSyncers returns a ResourceSyncerV2 for each resource type that should be synced from the upstream service.
func (*Connector) Validate ¶
func (d *Connector) Validate(_ 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.
Click to show internal directories.
Click to hide internal directories.