airbyte

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Airbyte

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

Airbyte is used for communicating with the Airbyte API

func New

func New(host, clientID, clientSecret string, opts ...Option) *Airbyte

New returns an Airbyte client. The host is the hostname (with port) where the Airbyte API is hosted. The clientID and clientSecret are both required in order to create an application token.

func (*Airbyte) GetOrgEmail

func (a *Airbyte) GetOrgEmail(ctx context.Context) (string, error)

GetOrgEmail returns the organization email for the organization "00000000-0000-0000-0000-000000000000".

func (*Airbyte) SetOrgEmail

func (a *Airbyte) SetOrgEmail(ctx context.Context, email string) error

SetOrgEmail updates the email assocated with the default organization "00000000-0000-0000-0000-000000000000".

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient exists for testing purposes

type Option

type Option func(*Airbyte)

Option for configuring the Command, primarily exists for testing

func WithHTTPClient

func WithHTTPClient(h HTTPClient) Option

WithHTTPClient overrides the default http client. Primarily for testing purposes.

func WithToken

func WithToken(token Token) Option

WithToken sets the token to use with this client. Primarily for testing purposes

type Token

type Token string

Token represents an application token

Jump to

Keyboard shortcuts

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