metabaseconfig

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PermDefault is a default permission bits for metabase file.
	PermDefault = 0700
)

config defaults

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config config.Config

Config is a wrapper over the config section which provides access to Metabase configurations.

func From

func From(c *config.Config) *Config

From wraps config section into Config.

func (*Config) Path

func (x *Config) Path() string

Path returns value of "path" config parameter.

Panics if value is not a non-empty string.

func (*Config) Perm

func (x *Config) Perm() fs.FileMode

Perm returns value of "perm" config parameter as a fs.FileMode.

Returns PermDefault if value is not a positive number.

Jump to

Keyboard shortcuts

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