connector

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ResourcesPageSize = 50

Variables

This section is empty.

Functions

This section is empty.

Types

type Xero

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

func New

func New(ctx context.Context, clientId, clientSecret, token, refreshToken string) (*Xero, error)

New returns the Xero connector.

func (*Xero) Metadata

func (x *Xero) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

Metadata returns metadata about the connector.

func (*Xero) ResourceSyncers

func (x *Xero) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer

func (*Xero) Validate

func (x *Xero) Validate(ctx context.Context) (annotations.Annotations, error)

Validate hits the Xero API to validate that the configured credentials are valid and compatible.

Jump to

Keyboard shortcuts

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