Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DefaultEnvironmentName string `yaml:"default_environment"`
SelectedEnvironmentName string `yaml:"-"`
SelectedEnvironment *Environment `yaml:"-"`
Environments map[string]Environment `yaml:"environments"`
// contains filtered or unexported fields
}
func (*Config) SelectEnvironment ¶
type Connections ¶
type Connections struct {
GoogleCloudPlatform []GoogleCloudPlatformConnection `yaml:"google_cloud_platform"`
Snowflake []SnowflakeConnection `yaml:"snowflake"`
Generic []GenericConnection `yaml:"generic"`
// contains filtered or unexported fields
}
type Environment ¶
type Environment struct {
Connections Connections `yaml:"connections"`
}
func (*Environment) GetSecretByKey ¶
func (e *Environment) GetSecretByKey(key string) (string, error)
type GenericConnection ¶
func (GenericConnection) MarshalJSON ¶
func (c GenericConnection) MarshalJSON() ([]byte, error)
type GoogleCloudPlatformConnection ¶
type GoogleCloudPlatformConnection struct {
Name string `yaml:"name"`
ServiceAccountJSON string `yaml:"service_account_json"`
ServiceAccountFile string `yaml:"service_account_file"`
ProjectID string `yaml:"project_id"`
// contains filtered or unexported fields
}
func (*GoogleCloudPlatformConnection) GetCredentials ¶
func (c *GoogleCloudPlatformConnection) GetCredentials() *google.Credentials
func (GoogleCloudPlatformConnection) MarshalJSON ¶
func (c GoogleCloudPlatformConnection) MarshalJSON() ([]byte, error)
func (*GoogleCloudPlatformConnection) SetCredentials ¶
func (c *GoogleCloudPlatformConnection) SetCredentials(cred *google.Credentials)
type SnowflakeConnection ¶
type SnowflakeConnection struct {
Name string `yaml:"name"`
Account string `yaml:"account"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Region string `yaml:"region"`
Role string `yaml:"role"`
Database string `yaml:"database"`
Schema string `yaml:"schema"`
Warehouse string `yaml:"warehouse"`
}
func (SnowflakeConnection) MarshalJSON ¶
func (c SnowflakeConnection) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.