setup

package
v0.0.0-...-3865c62 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUsers

func GetUsers() ([]string, error)

TODO: Grab from Okta

func Snowflake

func Snowflake() (*sql.DB, error)

Types

type DatabricksClientEnvironment

type DatabricksClientEnvironment struct {
	HOST  string `required:"true"`
	TOKEN string `required:"true"`
}

type DatabricksConnection

type DatabricksConnection interface {
	Secrets() DBAWS.SecretsAPI
}

func Databricks

func Databricks() (DatabricksConnection, error)

type SecretsIface

type SecretsIface interface {
	ListSecretScopes() ([]DBModels.SecretScope, error)
	PutSecretACL(scope string, principal string, permission DBModels.AclPermission) error
	CreateSecretScope(scope string, initialManagePrincipal string) error
	PutSecret(bytesValue []byte, scope string, key string) error
}

type SnowflakeClientEnvironment

type SnowflakeClientEnvironment struct {
	ACCOUNT  string `required:"true"`
	REGION   string
	PASSWORD string `required:"true"`
	USER     string `required:"true"`
	ROLE     string `required:"true"`
}

Jump to

Keyboard shortcuts

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