config

package
v0.1.7-test Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Default flag keys
	HiveDBLocationURIKey       = "metastore.hive.db_location_uri"
	ConfigServerEndpointURLKey = "server.endpoint_url"
	ConfigAccessKeyIDKey       = "credentials.access_key_id"
	ConfigSecretAccessKey      = "credentials.secret_access_key"

	// Defaults
	DefaultHiveDBLocationURI = "file:/user/hive/warehouse/"
	DefaultServerEndpointURL = "http://127.0.0.1:8000"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Values configuration
	// contains filtered or unexported fields
}

Config is the currently-loaded configuration. Its error state supports being able to run `lakectl config' without a valid configuration.

func ReadConfig

func ReadConfig() (c *Config)

ReadConfig loads according to the current viper configuration into a Config, which will have non-nil Err() if loading fails.

func (*Config) Err

func (c *Config) Err() error

func (*Config) GetFixSparkPlaceholder added in v0.45.1

func (c *Config) GetFixSparkPlaceholder() bool

func (*Config) GetGlueDBLocationURI added in v0.40.3

func (c *Config) GetGlueDBLocationURI() string

func (*Config) GetHiveDBLocationURI added in v0.40.3

func (c *Config) GetHiveDBLocationURI() string

func (*Config) GetMetastoreAwsConfig

func (c *Config) GetMetastoreAwsConfig() *aws.Config

func (*Config) GetMetastoreGlueCatalogID

func (c *Config) GetMetastoreGlueCatalogID() string

func (*Config) GetMetastoreHiveURI

func (c *Config) GetMetastoreHiveURI() string

func (*Config) GetMetastoreType

func (c *Config) GetMetastoreType() string

Jump to

Keyboard shortcuts

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