Documentation
¶
Index ¶
- Variables
- type Config
- func (c *Config) ApplyDefaults(globals integrations_v2.Globals) error
- func (c *Config) Identifier(globals integrations_v2.Globals) (string, error)
- func (c *Config) Name() string
- func (c *Config) NewIntegration(l log.Logger, globals integrations_v2.Globals) (integrations_v2.Integration, error)
- func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
Role: "ACCOUNTADMIN",
}
DefaultConfig is the default config for the snowflake v2 integration
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AccountName string `yaml:"account_name,omitempty"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` Role string `yaml:"role,omitempty"` Warehouse string `yaml:"warehouse,omitempty"` Common common.MetricsConfig `yaml:",inline"` }
Config is the configuration for the snowflake v2 integration
func (*Config) ApplyDefaults ¶
func (c *Config) ApplyDefaults(globals integrations_v2.Globals) error
ApplyDefaults applies the integration's default configuration.
func (*Config) Identifier ¶
func (c *Config) Identifier(globals integrations_v2.Globals) (string, error)
Identifier returns a string that identifies the integration.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(l log.Logger, globals integrations_v2.Globals) (integrations_v2.Integration, error)
NewIntegration creates a new v2 integration from the config.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config
Click to show internal directories.
Click to hide internal directories.