Documentation ¶
Index ¶
- func AsStringArray(source []interface{}) []string
- func ProjectID(client *KBCClient) (string, error)
- func Provider() terraform.ResourceProvider
- type AWSRedShiftWriter
- type AWSRedShiftWriterConfiguration
- type AWSRedShiftWriterParameters
- type AWSRedShiftWriterStorage
- type AWSRedShiftWriterStorageTable
- type AWSRedShiftWriterTable
- type AWSRedShiftWriterTableItem
- type AWSRedshiftWriterDatabaseParameters
- type AWSS3Extractor
- type AWSS3WriterTable
- type AWSs3Writer
- type AWSs3WriterConfigurationParameters
- type AWSs3WriterConfigurationRows
- type AWSs3WriterDatabaseParameters
- type AWSs3WriterDatabaseRowParameters
- type AWSs3WriterProcessor
- type AWSs3WriterStorage
- type AWSs3WriterStorageTable
- type AccessToken
- type AdformExtractor
- type Awss3Definition
- type Awss3WriterStorageTableBefore
- type Awss3parameters
- type Configuration
- type CreateResourceResult
- type DropboxWriter
- type DropboxWriterTableItem
- type ElasticSearchWriter
- type ElasticSearchWriterTableItem
- type EmailAttachmentConfig
- type EmailAttachmentConfigParameters
- type EmailAttachmentExtractor
- type ExtractorTable
- type FirebirdExtractor
- type GetEmailRequest
- type GetEmailResponse
- type GithubImportExtractor
- type GoogleDriveExtractor
- type Input
- type KBCBoolean
- type KBCBooleanNumber
- type KBCClient
- func (c *KBCClient) DeleteFromStorage(endpoint string) (*http.Response, error)
- func (c *KBCClient) DeleteFromSyrup(endpoint string) (*http.Response, error)
- func (c *KBCClient) GetFromRowStorage(endpoint string) (*http.Response, error)
- func (c *KBCClient) GetFromStorage(endpoint string) (*http.Response, error)
- func (c *KBCClient) GetFromSyrup(endpoint string) (*http.Response, error)
- func (c *KBCClient) GetProjectID() (*http.Response, error)
- func (c *KBCClient) PatchOnSyrup(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)
- func (c *KBCClient) PostToDockerAction(endpoint string, jsonpayload []byte) (*http.Response, error)
- func (c *KBCClient) PostToDockerCreateSSH() (key Keys, err error)
- func (c *KBCClient) PostToDockerEncrypt(componentID string, jsonpayload []byte, projectID string) (*http.Response, error)
- func (c *KBCClient) PostToDockerRun(ComponentID string, ConfigID string) (*http.Response, error)
- func (c *KBCClient) PostToDockerTransformationRun(ComponentID string, ConfigID string) (*http.Response, error)
- func (c *KBCClient) PostToFileImport(endpoint string, formdata *bytes.Buffer) (*http.Response, error)
- func (c *KBCClient) PostToStorage(endpoint string, formdata *bytes.Buffer) (*http.Response, error)
- func (c *KBCClient) PostToSyrup(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)
- func (c *KBCClient) PutFormToSyrup(endpoint string, formdata *bytes.Buffer) (*http.Response, error)
- func (c *KBCClient) PutToRowStorage(endpoint string, formData *bytes.Buffer) (*http.Response, error)
- func (c *KBCClient) PutToStorage(endpoint string, formData *bytes.Buffer) (*http.Response, error)
- func (c *KBCClient) PutToSyrup(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)
- type KBCNumberString
- type KBCTime
- type Keys
- type MySqlWriter
- type MySqlWriterConfiguration
- type MySqlWriterDatabaseParameters
- type MySqlWriterParameters
- type MySqlWriterStorage
- type MySqlWriterStorageTable
- type MySqlWriterTable
- type MySqlWriterTableItem
- type Orchestration
- type OrchestrationNotification
- type OrchestrationTask
- type OrchestrationToken
- type Output
- type ProvisionSnowflakeResponse
- type ProvisionedAWSRedShiftResponse
- type Rowsinfo
- type S3BucketExtractorConfiguration
- type S3BucketExtractorConfigurationParameters
- type S3BucketExtractorProcessor
- type S3BucketExtractorProcessorConfig
- type S3BucketExtractorRows
- type S3BucketExtractorRowsConfig
- type S3BucketExtractorRowsConfigParameter
- type SQLServerWriter
- type SQLServerWriterConfiguration
- type SQLServerWriterDatabaseParameters
- type SQLServerWriterParameters
- type SQLServerWriterStorage
- type SQLServerWriterStorageTable
- type SQLServerWriterTable
- type SQLServerWriterTableItem
- type SSHTunnel
- type SnowFlakeExtractor
- type SnowflakeExtractorConfiguration
- type SnowflakeExtractorDatabaseParameters
- type SnowflakeExtractorDatabaseTable
- type SnowflakeExtractorParameters
- type SnowflakeWriter
- type SnowflakeWriterConfiguration
- type SnowflakeWriterDatabaseParameters
- type SnowflakeWriterParameters
- type SnowflakeWriterStorage
- type SnowflakeWriterStorageTable
- type SnowflakeWriterTable
- type SnowflakeWriterTableItem
- type StorageBucket
- type StorageJobStatus
- type StorageTable
- type SyrupJobStatus
- type TableauColumn
- type TableauTable
- type TableauWriter
- type TableauWriterTableItem
- type Transformation
- type TransformationBucket
- type UploadFileResult
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsStringArray ¶
func AsStringArray(source []interface{}) []string
AsStringArray converts an array of interfaces to an array of strings Terraform stores array data within the ResourceData as []interface{}
func Provider ¶
func Provider() terraform.ResourceProvider
Provider returns a terraform.ResourceProvider for the Keboola provider.
Types ¶
type AWSRedShiftWriter ¶
type AWSRedShiftWriter struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` Configuration AWSRedShiftWriterConfiguration `json:"configuration"` }
type AWSRedShiftWriterConfiguration ¶
type AWSRedShiftWriterConfiguration struct { Parameters AWSRedShiftWriterParameters `json:"parameters"` Storage AWSRedShiftWriterStorage `json:"storage,omitempty"` }
type AWSRedShiftWriterParameters ¶
type AWSRedShiftWriterParameters struct { Database AWSRedshiftWriterDatabaseParameters `json:"db"` Tables []AWSRedShiftWriterTable `json:"tables,omitempty"` }
type AWSRedShiftWriterStorage ¶
type AWSRedShiftWriterStorage struct { Input struct { Tables []AWSRedShiftWriterStorageTable `json:"tables,omitempty"` } `json:"input,omitempty"` }
type AWSRedShiftWriterStorageTable ¶
type AWSRedShiftWriterStorageTable struct { Source string `json:"source"` Destination string `json:"destination"` Columns []string `json:"columns"` ChangedSince string `json:"changed_since,omitempty"` WhereColumn string `json:"where_column,omitempty"` WhereOperator string `json:"where_operator,omitempty"` WhereValues []string `json:"where_values,omitempty"` }
type AWSRedShiftWriterTable ¶
type AWSRedshiftWriterDatabaseParameters ¶
type AWSRedshiftWriterDatabaseParameters struct { HostName string `json:"host"` Database string `json:"database"` Password string `json:"password,omitempty"` EncryptedPassword string `json:"#password,omitempty"` Username string `json:"user"` Schema string `json:"schema"` Port string `json:"port"` Driver string `json:"driver"` SSH SSHTunnel `json:"ssh"` }
type AWSS3Extractor ¶
type AWSS3Extractor struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Configuration S3BucketExtractorConfiguration `json:"configuration"` RowsSortOrder []string `json:"rowsSortOrder"` }
type AWSS3WriterTable ¶
type AWSS3WriterTable struct {
TableID string `json:"tableId"`
}
type AWSs3Writer ¶
type AWSs3Writer struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` AWSs3WriterConfigurationParameters AWSs3WriterConfigurationParameters `json:"configuration"` ConfigurationRow AWSs3WriterConfigurationRows `json:"configuration"` }
type AWSs3WriterConfigurationParameters ¶
type AWSs3WriterConfigurationParameters struct {
Parameters AWSs3WriterDatabaseParameters `json:"parameters"`
}
type AWSs3WriterConfigurationRows ¶
type AWSs3WriterConfigurationRows struct {
RowsInfo Rowsinfo `json:"rows,omitempty"`
}
type AWSs3WriterDatabaseRowParameters ¶
type AWSs3WriterDatabaseRowParameters struct {
Prefix string `json:"prefix"`
}
type AWSs3WriterProcessor ¶
type AWSs3WriterProcessor struct {
Before []Awss3WriterStorageTableBefore `json:"before,omitempty"`
}
type AWSs3WriterStorage ¶
type AWSs3WriterStorage struct { Input struct { Tables []AWSs3WriterStorageTable `json:"tables,omitempty"` } `json:"input,omitempty"` }
type AWSs3WriterStorageTable ¶
type AccessToken ¶
type AccessToken struct { ID string `json:"id,omitempty"` Description string `json:"description"` CreatedAt KBCTime `json:"created"` CanManageBuckets bool `json:"canManageBuckets"` CanManageTokens bool `json:"canManageTokens"` CanReadAllFileUploads bool `json:"canReadAllFileUploads"` ExpiresIn KBCTime `json:"expires"` ComponentAccess []string `json:"componentAccess"` BucketPermissions map[string]interface{} `json:"bucketPermissions"` }
type AdformExtractor ¶
type AdformExtractor struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` }
Adform Extractor
type Awss3Definition ¶
type Awss3Definition struct {
Component string `json:"component"`
}
type Awss3WriterStorageTableBefore ¶
type Awss3WriterStorageTableBefore struct { ComponentStorage Awss3Definition `json:"definition"` DirectionStorage Awss3parameters `json:"parameters"` }
type Awss3parameters ¶
type Awss3parameters struct {
Direction string `json:"direction"`
}
type Configuration ¶
type Configuration struct { Input []Input `json:"input,omitempty"` Output []Output `json:"output,omitempty"` Queries []string `json:"queries,omitempty"` ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` Disabled bool `json:"disabled,omitempty"` BackEnd string `json:"backend"` Phase KBCNumberString `json:"phase"` Type string `json:"type"` }
Configuration holds the core configuration for each transformation, as it is structured in the Keboola Storage API.
type CreateResourceResult ¶
CreateResourceResult holds the results from requesting creation of a Keboola resource.
type DropboxWriter ¶
type DropboxWriter struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` }
Structure of the DropboxWriter
type DropboxWriterTableItem ¶
type ElasticSearchWriter ¶
type ElasticSearchWriter struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` }
Structure of the ElasticSearchWriter
type EmailAttachmentConfig ¶
type EmailAttachmentConfig struct {
Parameters EmailAttachmentConfigParameters `json:"parameters"`
}
type EmailAttachmentExtractor ¶
type EmailAttachmentExtractor struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Configuration EmailAttachmentConfig `json:"configuration"` }
type ExtractorTable ¶
type ExtractorTable struct { Enabled bool `json:"enabled"` TableID int `json:"id,omitempty"` Name string `json:"name"` Incremental bool `json:"incremental, omitempty"` OutputTable string `json:"outputTable,omitempty"` // PrimaryKey []string `json:"primaryKey,omitempty"` Columns []string `json:"columns,omitempty"` Table SnowflakeExtractorDatabaseTable `json:"table"` }
type FirebirdExtractor ¶
type FirebirdExtractor struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` }
Firebird Extractor
type GetEmailRequest ¶
type GetEmailRequest struct { ConfigData struct { Parameters struct { Config string `json:"config"` } `json:"paramters"` } `json:"configData"` }
type GetEmailResponse ¶
type GetEmailResponse struct {
Email string `json:"email"`
}
type GithubImportExtractor ¶
type GoogleDriveExtractor ¶
type GoogleDriveExtractor struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description` }
Google Drive Extractor Incomplete: needs to add OAuth2 access token for google drive
type Input ¶
type Input struct { Source string `json:"source"` Destination string `json:"destination"` WhereColumn string `json:"whereColumn,omitempty"` WhereOperator string `json:"whereOperator,omitempty"` WhereValues []string `json:"whereValues,omitempty"` Indexes [][]string `json:"indexes,omitempty"` Columns []string `json:"columns,omitempty"` DataTypes map[string]interface{} `json:"datatypes,omitempty"` Days int `json:"days,omitempty"` ChangedSince string `json:"changedSince,omitempty"` }
Input is a mapping from input tables to internal tables for use by the transformation queries.
type KBCBoolean ¶
type KBCBoolean bool
KBCBoolean represents a boolean value in the Keboola APIs, which can take a 0/1 or false/true value.
func (*KBCBoolean) UnmarshalJSON ¶
func (bit *KBCBoolean) UnmarshalJSON(data []byte) error
UnmarshalJSON handles unmarshaling a KBCBoolean in to JSON.
type KBCBooleanNumber ¶
type KBCBooleanNumber int
KBCBooleanNumber represents a dual value in the Keboola APIs, which can take either a boolean, or a number/integer.
func (*KBCBooleanNumber) UnmarshalJSON ¶
func (kbn *KBCBooleanNumber) UnmarshalJSON(data []byte) error
UnmarshalJSON handles unmarshaling a KBCNumberString in to JSON.
type KBCClient ¶
type KBCClient struct {
APIKey string
}
KBCClient is used for communicating with the Keboola Connection API
func (*KBCClient) DeleteFromStorage ¶
DeleteFromStorage removes an existing object from the Keboola Storage API.
func (*KBCClient) DeleteFromSyrup ¶
DeleteFromSyrup removes an existing object from the Keboola Syrup API.
func (*KBCClient) GetFromRowStorage ¶
Gets request for row storage
func (*KBCClient) GetFromStorage ¶
GetFromStorage requests an object from the Keboola Storage API.
func (*KBCClient) GetFromSyrup ¶
GetFromSyrup requests an object from the Keboola Syrup API.
func (*KBCClient) GetProjectID ¶
Get request for a ProjectID
func (*KBCClient) PatchOnSyrup ¶
func (c *KBCClient) PatchOnSyrup(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)
PatchOnSyrup applies a patch/changeset to an existing object on the Keboola Storage API.
func (*KBCClient) PostToDockerAction ¶
func (*KBCClient) PostToDockerCreateSSH ¶
func (*KBCClient) PostToDockerEncrypt ¶
func (c *KBCClient) PostToDockerEncrypt(componentID string, jsonpayload []byte, projectID string) (*http.Response, error)
PostToDocker posts a new object to the Keboola docker API.
func (*KBCClient) PostToDockerRun ¶
func (*KBCClient) PostToDockerTransformationRun ¶
func (*KBCClient) PostToFileImport ¶
func (c *KBCClient) PostToFileImport(endpoint string, formdata *bytes.Buffer) (*http.Response, error)
PostToFileImport posts a new object to the Keboola File Import API.
func (*KBCClient) PostToStorage ¶
PostToStorage posts a new object to the Keboola Storage API.
func (*KBCClient) PostToSyrup ¶
PostToSyrup posts a new object to the Keboola Syrup API.
func (*KBCClient) PutFormToSyrup ¶
PutFormToSyrup puts an existing object in Form encoded format to the Keboola Storage API for update.
func (*KBCClient) PutToRowStorage ¶
func (c *KBCClient) PutToRowStorage(endpoint string, formData *bytes.Buffer) (*http.Response, error)
Update request for row storage
func (*KBCClient) PutToStorage ¶
PutToStorage puts an existing object to the Keboola Storage API for update.
type KBCNumberString ¶
type KBCNumberString string
KBCNumberString represents a dual value in the Keboola APIs, which can take either a string, or a number/integer.
func (*KBCNumberString) UnmarshalJSON ¶
func (kns *KBCNumberString) UnmarshalJSON(data []byte) error
UnmarshalJSON handles unmarshaling a KBCNumberString in to JSON.
type KBCTime ¶
KBCTime represents a time value in the Keboola APIs, which has a very specific formatting.
func (*KBCTime) UnmarshalJSON ¶
UnmarshalJSON handles unmarshaling a KBCTime in to JSON.
type MySqlWriter ¶
type MySqlWriter struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` Configuration MySqlWriterConfiguration `json:"configuration"` }
type MySqlWriterConfiguration ¶
type MySqlWriterConfiguration struct { Parameters MySqlWriterParameters `json:"parameters"` Storage MySqlWriterStorage `json:"storage,omitempty"` }
type MySqlWriterDatabaseParameters ¶
type MySqlWriterDatabaseParameters struct { HostName string `json:"host"` Database string `json:"database"` Password string `json:"password,omitempty"` EncryptedPassword string `json:"#password,omitempty"` Username string `json:"user"` Port string `json:"port"` Driver string `json:"driver"` SSH SSHTunnel `json:"ssh"` }
type MySqlWriterParameters ¶
type MySqlWriterParameters struct { Database MySqlWriterDatabaseParameters `json:"db"` Tables []MySqlWriterTable `json:"tables,omitempty"` }
type MySqlWriterStorage ¶
type MySqlWriterStorage struct { Input struct { Tables []MySqlWriterStorageTable `json:"tables,omitempty"` } `json:"input,omitempty"` }
type MySqlWriterStorageTable ¶
type MySqlWriterStorageTable struct { Source string `json:"source"` Destination string `json:"destination"` Columns []string `json:"columns"` ChangedSince string `json:"changed_since,omitempty"` WhereColumn string `json:"where_column,omitempty"` WhereOperator string `json:"where_operator,omitempty"` WhereValues []string `json:"where_values,omitempty"` }
type MySqlWriterTable ¶
type MySqlWriterTableItem ¶
type Orchestration ¶
type Orchestration struct { ID json.Number `json:"id,omitempty"` Name string `json:"name"` ScheduleCRON string `json:"crontabRecord"` Token OrchestrationToken `json:"token,omitempty"` Notifications []OrchestrationNotification `json:"notifications"` }
type OrchestrationTask ¶
type OrchestrationTask struct { ID json.Number `json:"id"` Component string `json:"component"` Action string `json:"action"` ActionParameters map[string]interface{} `json:"actionParameters"` Timeout int `json:"timeoutMinutes"` IsActive bool `json:"active"` ContinueOnFailure bool `json:"continueOnFailure"` Phase string `json:"phase"` }
type OrchestrationToken ¶
type Output ¶
type Output struct { Source string `json:"source"` Destination string `json:"destination"` Incremental bool `json:"incremental,omitempty"` PrimaryKey []string `json:"primaryKey,omitempty"` DeleteWhereValues []string `json:"deleteWhereValues,omitempty"` DeleteWhereOperator string `json:"deleteWhereOperator,omitempty"` DeleteWhereColumn string `json:"deleteWhereColumn,omitempty"` }
Output is a mapping from the internal tables used by transformation queries to output tables.
type ProvisionSnowflakeResponse ¶
type ProvisionSnowflakeResponse struct { Status string `json:"status"` Credentials struct { ID string `json:"id"` HostName string `json:"hostname"` Port int `json:"port"` Database string `json:"db"` Schema string `json:"schema"` Warehouse string `json:"warehouse"` Username string `json:"user"` Password string `json:"password"` WorkspaceID string `json:"workspaceId"` } `json:"credentials"` }
type ProvisionedAWSRedShiftResponse ¶
type ProvisionedAWSRedShiftResponse struct { Status string `json:"status"` Credentials struct { ID int `json:"id"` Hostname string `json:"host"` Port int `json:"port"` Database string `json:"db"` Schema string `json:"schema"` Warehouse string `json:"warehouse"` Username string `json:"user"` Password string `json:"password"` WorkspaceID int `json:"workspaceId"` } `json:"credentials"` }
type Rowsinfo ¶
type Rowsinfo struct { Storage AWSs3WriterStorage `json:"storage,omitempty"` Processor AWSs3WriterProcessor `json:"processors,omitempty"` Parameters AWSs3WriterDatabaseRowParameters `json:"parameters"` // contains filtered or unexported fields }
type S3BucketExtractorConfiguration ¶
type S3BucketExtractorConfiguration struct {
Parameters S3BucketExtractorConfigurationParameters `json:"parameters"`
}
type S3BucketExtractorProcessorConfig ¶
type S3BucketExtractorProcessorConfig struct {
After []S3BucketExtractorProcessor `json:"after"`
}
type S3BucketExtractorRows ¶
type S3BucketExtractorRows struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Configuration S3BucketExtractorRowsConfig `json:"configuration"` }
type S3BucketExtractorRowsConfig ¶
type S3BucketExtractorRowsConfig struct {
Parameters S3BucketExtractorRowsConfigParameter `json:"parameters, omitempty"`
}
type SQLServerWriter ¶
type SQLServerWriter struct { ID string `json:"id, omitempty"` Name string `json:"name"` Description string `json:"description"` Configuration SQLServerWriterConfiguration `json:"configuration"` }
type SQLServerWriterConfiguration ¶
type SQLServerWriterConfiguration struct { Parameters SQLServerWriterParameters `json:"parameters"` Storage SQLServerWriterStorage `json:"storage,omitempty"` }
type SQLServerWriterDatabaseParameters ¶
type SQLServerWriterDatabaseParameters struct { HostName string `json:"host"` Database string `json:"database"` Instance string `json:"instance"` EncryptedPassword string `json:"#password"` Username string `json:"user"` Driver string `json:"driver"` Version string `json:"tdsVersion"` Port string `json:"port"` SSH SSHTunnel `json:"ssh"` }
type SQLServerWriterParameters ¶
type SQLServerWriterParameters struct { Database SQLServerWriterDatabaseParameters `json:"db"` Tables []SQLServerWriterTable `json:"tables,omitempty"` }
type SQLServerWriterStorage ¶
type SQLServerWriterStorage struct { Input struct { Tables []SQLServerWriterStorageTable `json:"tables,omitempty"` } `json:"input,omitempty"` }
type SQLServerWriterStorageTable ¶
type SQLServerWriterStorageTable struct { Source string `json:"source"` Destination string `json:"destination"` Columns []string `json:"columns"` ChangedSince string `json:"changed_since,omitempty"` WhereColumn string `json:"where_column,omitempty"` WhereOperator string `json:"where_operator,omitempty"` WhereValues []string `json:"where_values,omitempty"` }
type SQLServerWriterTable ¶
type SnowFlakeExtractor ¶
type SnowFlakeExtractor struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Configuration SnowflakeExtractorConfiguration `json:"configuration"` }
Snowflake Extractor Complete
type SnowflakeExtractorConfiguration ¶
type SnowflakeExtractorConfiguration struct {
Parameters SnowflakeExtractorParameters `json:"parameters"`
}
SnowflakeExtractionConfiguration: component configuration Complete
type SnowflakeExtractorDatabaseParameters ¶
type SnowflakeExtractorDatabaseParameters struct { HostName string `json:"host"` Database string `json:"database"` Password string `json:"database"` EncryptedPassword string `json:"#password,omitempty"` User string `json:"user"` Schema string `json:"schema"` Port string `json:"port"` Driver string `json:"driver"` Warehouse string `json:"warehouse"` }
SnowflakeExtractorDatabaseParameters: configurations on sourcing database Complete
type SnowflakeExtractorParameters ¶
type SnowflakeExtractorParameters struct { Database SnowflakeExtractorDatabaseParameters `json:"db"` Tables []ExtractorTable `json:"tables,omitempty"` }
SnowflakeExtractorParameters Snowflake Extractor's configuration parameters that includes database credentials and sourcing tables Incomplete: need to add the sourcing tables
type SnowflakeWriter ¶
type SnowflakeWriter struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` Configuration SnowflakeWriterConfiguration `json:"configuration"` }
SnowflakeWriter is the data model for Snowflake Writers within the Keboola Storage API.
type SnowflakeWriterConfiguration ¶
type SnowflakeWriterConfiguration struct { Parameters SnowflakeWriterParameters `json:"parameters"` Storage SnowflakeWriterStorage `json:"storage,omitempty"` }
type SnowflakeWriterDatabaseParameters ¶
type SnowflakeWriterDatabaseParameters struct { HostName string `json:"host"` Database string `json:"database"` Password string `json:"password,omitempty"` EncryptedPassword string `json:"#password,omitempty"` Username string `json:"user"` Schema string `json:"schema"` Port string `json:"port"` Driver string `json:"driver"` Warehouse string `json:"warehouse"` }
type SnowflakeWriterParameters ¶
type SnowflakeWriterParameters struct { Database SnowflakeWriterDatabaseParameters `json:"db"` Tables []SnowflakeWriterTable `json:"tables,omitempty"` }
type SnowflakeWriterStorage ¶
type SnowflakeWriterStorage struct { Input struct { Tables []SnowflakeWriterStorageTable `json:"tables,omitempty"` } `json:"input,omitempty"` }
type SnowflakeWriterStorageTable ¶
type SnowflakeWriterStorageTable struct { Source string `json:"source"` Destination string `json:"destination"` Columns []string `json:"columns"` ChangedSince string `json:"changed_since,omitempty"` WhereColumn string `json:"where_column,omitempty"` WhereOperator string `json:"where_operator,omitempty"` WhereValues []string `json:"where_values,omitempty"` }
type SnowflakeWriterTable ¶
type StorageBucket ¶
type StorageBucket struct { ID string `json:"id,omitempty"` Name string `json:"name"` Stage string `json:"stage"` Description string `json:"description"` Backend string `json:"backend,omitempty"` }
StorageBucket is the data model for storage buckets within the Keboola Storage API.
type StorageJobStatus ¶
type StorageJobStatus struct { ID int `json:"id"` URL string `json:"url"` Status string `json:"status"` Results struct { ID string `json:"id"` Name string `json:"name"` } `json:"results"` }
StorageJobStatus contains the job status and results for Storage API based jobs.
type StorageTable ¶
type StorageTable struct { ID string `json:"id,omitempty"` Name string `json:"name"` Delimiter string `json:"delimiter"` Enclosure string `json:"enclosure,omitempty"` Transactional bool `json:"transactional,omitempty"` Columns []string `json:"columns"` PrimaryKey []string `json:"primaryKey"` IndexedColumns []string `json:"indexedColumns"` }
StorageTable is the data model for Storage Tables within the Keboola Storage API.
type SyrupJobStatus ¶
type SyrupJobStatus struct { ID int `json:"id"` URL string `json:"url"` Status string `json:"status"` }
SyrupJobStatus contains the job status and results for Syrup API based jobs.
type TableauColumn ¶
type TableauTable ¶
type TableauTable struct { ID string `json:"tableId, omitempty"` Title string `json:"title"` Export bool `json:"export"` Columns map[string]TableauColumn `json:"columns"` }
type TableauWriter ¶
type TableauWriter struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` }
Structure of the TableauWriter
type TableauWriterTableItem ¶
type Transformation ¶
type Transformation struct { ID string `json:"id"` Configuration Configuration `json:"configuration"` }
Transformation is the data model for data transformations within the Keboola Storage API.
type TransformationBucket ¶
type TransformationBucket struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` }
TransformationBucket is the data model for data transformations within the Keboola Storage API.
type UploadFileResult ¶
type UploadFileResult struct {
ID int `json:"id"`
}
UploadFileResult contains the id of the CSV file uploaded to AWS S3.
Source Files ¶
- Keboola_retriveTokens.go
- arrays.go
- client.go
- client_docker.go
- client_fileimport.go
- client_storage.go
- client_syrup.go
- keboola.go
- keboola_jobs.go
- provider.go
- resource_keboola_access_token.go
- resource_keboola_adform_extractor.go
- resource_keboola_aws_redshift_table.go
- resource_keboola_aws_redshift_writer.go
- resource_keboola_aws_s3Bucket_table.go
- resource_keboola_aws_s3bucket_extractor.go
- resource_keboola_aws_s3bucket_extractor_rows.go
- resource_keboola_aws_s3bucket_writer.go
- resource_keboola_dropbox_writer.go
- resource_keboola_elasticsearch_writer.go
- resource_keboola_email_attachment_extractor.go
- resource_keboola_extractor_table.go
- resource_keboola_firebird_extractor.go
- resource_keboola_github_extractor.go
- resource_keboola_googledrive_extractor.go
- resource_keboola_mysql_table.go
- resource_keboola_mysql_writer.go
- resource_keboola_orchestration.go
- resource_keboola_orchestration_tasks.go
- resource_keboola_snowflake_extractor.go
- resource_keboola_snowflake_writer.go
- resource_keboola_sqlserver_writer.go
- resource_keboola_sqlserver_writer_tables.go
- resource_keboola_storage_bucket.go
- resource_keboola_storage_table.go
- resource_keboola_tableau_writer.go
- resource_keboola_tableau_writer_tables.go
- resource_keboola_transformation.go
- resource_keboola_transformation_bucket.go
- schema_input.go
- schema_output.go
- ssh_keboola.go
- suppress_funcs.go
- validators.go