snowflake

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASIC_AUTH    = "basic"
	KEY_PAIR_AUTH = "key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Mode  string `validate:"oneof=gui sql"`
	Query string
}

type Connector

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

func (*Connector) GetMetaInfo

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

func (*Connector) Run

func (s *Connector) Run(resourceOpts map[string]interface{}, actionOpts map[string]interface{}) (common.RuntimeResult, error)

func (*Connector) TestConnection

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

func (*Connector) ValidateActionOptions

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

func (*Connector) ValidateResourceOptions

func (s *Connector) ValidateResourceOptions(resourceOpts 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