airtable

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnector

func NewConnector() (*sdk.ConnectorPlugin, error)

Types

type Base

type Base struct {
	ID              string `json:"id"`
	Name            string `json:"name"`
	PermissionLevel string `json:"permissionLevel"`
}

type DeleteRecordOperation

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

func NewDeleteRecordOperation

func NewDeleteRecordOperation() *DeleteRecordOperation

func (*DeleteRecordOperation) GetInfo

func (c *DeleteRecordOperation) GetInfo() *sdk.OperationInfo

func (*DeleteRecordOperation) Run

func (*DeleteRecordOperation) Test

func (c *DeleteRecordOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type Field

type Field struct {
	Description string        `json:"description,omitempty"` // Omits field if no description is provided
	ID          string        `json:"id"`
	Name        string        `json:"name"`
	Type        string        `json:"type"`
	Options     *FieldOptions `json:"options,omitempty"` // Omits if options are not available
}

type FieldOptions

type FieldOptions struct {
	Color string `json:"color,omitempty"`
	Icon  string `json:"icon,omitempty"`
}

type FindRecordOperation

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

func NewFindRecordOperation

func NewFindRecordOperation() *FindRecordOperation

func (*FindRecordOperation) GetInfo

func (c *FindRecordOperation) GetInfo() *sdk.OperationInfo

func (*FindRecordOperation) Run

func (c *FindRecordOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*FindRecordOperation) Test

func (c *FindRecordOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type RecordAirtable

type RecordAirtable struct {
	ID     string                 `json:"id"`
	Fields map[string]interface{} `json:"fields"`
}

type RecordTrigger

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

func NewRecordTrigger

func NewRecordTrigger() *RecordTrigger

func (*RecordTrigger) GetInfo

func (t *RecordTrigger) GetInfo() *sdk.TriggerInfo

func (*RecordTrigger) OnDisabled

func (t *RecordTrigger) OnDisabled(ctx *sdk.RunContext) error

func (*RecordTrigger) OnEnabled

func (t *RecordTrigger) OnEnabled(ctx *sdk.RunContext) error

func (*RecordTrigger) Run

func (t *RecordTrigger) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*RecordTrigger) Test

func (t *RecordTrigger) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type Response

type Response struct {
	Bases  []Base `json:"bases"`
	Offset string `json:"offset"`
}

type ResponseAirtable

type ResponseAirtable struct {
	Records []RecordAirtable `json:"records"`
}

type Table

type Table struct {
	Description    string  `json:"description"`
	Fields         []Field `json:"fields"`
	ID             string  `json:"id"`
	Name           string  `json:"name"`
	PrimaryFieldID string  `json:"primaryFieldId"`
	Views          []View  `json:"views"`
}

type TableResponse

type TableResponse struct {
	Tables []Table `json:"tables"`
}

type UpdateRecordOperation

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

func NewUpdateRecordOperation

func NewUpdateRecordOperation() *UpdateRecordOperation

func (*UpdateRecordOperation) GetInfo

func (c *UpdateRecordOperation) GetInfo() *sdk.OperationInfo

func (*UpdateRecordOperation) Run

func (*UpdateRecordOperation) Test

func (c *UpdateRecordOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type View

type View struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

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