snowflake

package
v0.0.0-...-9e48597 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BASIC_AUTH    = "basic"
	KEY_PAIR_AUTH = "key"
)
View Source
const (
	FIELD_CONTEXT = "context"
	FIELD_QUERY   = "query"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Mode     string `validate:"oneof=gui sql sql-safe"`
	Query    string
	RawQuery string
	Context  map[string]interface{}
}

func (*Action) IsSafeMode

func (q *Action) IsSafeMode() bool

func (*Action) SetRawQueryAndContext

func (q *Action) SetRawQueryAndContext(rawTemplate map[string]interface{}) error

type Connector

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

func (*Connector) GetMetaInfo

func (s *Connector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)

func (*Connector) Run

func (s *Connector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, rawActionOptions map[string]interface{}) (common.RuntimeResult, error)

func (*Connector) TestConnection

func (s *Connector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)

func (*Connector) ValidateActionTemplate

func (s *Connector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)

func (*Connector) ValidateResourceOptions

func (s *Connector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)

type Resource

type Resource struct {
	AccountName    string `validate:"required"`
	Warehouse      string `validate:"required"`
	Database       string `validate:"required"`
	Schema         string
	Role           string
	Authentication string            `validate:"oneof=basic key"`
	AuthContent    map[string]string `validate:"required"`
}

Jump to

Keyboard shortcuts

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