Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthTypePassword = "password" AuthTypeWorkloadIdentity = "workload_identity" )
Variables ¶
This section is empty.
Functions ¶
func ValidateCredentials ¶
func ValidateCredentials(credentials Credentials) error
ValidateCredentials enforces the persisted Snowflake authentication shape.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct {
WIFObjects []snowflakewif.ObjectGrant `json:"wif_objects,omitempty"`
Account string `json:"account" validate:"required"`
Warehouse string `json:"warehouse" validate:"required"`
Database string `json:"database" validate:"required"`
Schema string `json:"schema" validate:"required"`
Role string `json:"role,omitempty"`
ConnectTimeout int `json:"connect_timeout,omitempty"`
WIFTokenFile string `json:"_wif_token_file,omitempty"`
WIFTokenSource func(context.Context) (string, error) `json:"-"`
}
type Credentials ¶
Click to show internal directories.
Click to hide internal directories.