config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PACKAGR_ENGINE_REPO_CONFIG_PATH = "engine_repo_config_path"
View Source
const PACKAGR_GENERIC_VERSION_TEMPLATE = "generic_version_template"
View Source
const PACKAGR_GIT_AUTHOR_EMAIL = "engine_git_author_email"
View Source
const PACKAGR_GIT_AUTHOR_NAME = "engine_git_author_name"
View Source
const PACKAGR_MGR_KEEP_LOCK_FILE = "mgr_keep_lock_file"
View Source
const PACKAGR_PACKAGE_TYPE = "package_type"
View Source
const PACKAGR_SCM = "scm"
View Source
const PACKAGR_VERSION_BUMP_MESSAGE = "engine_version_bump_msg"
View Source
const PACKAGR_VERSION_METADATA_PATH = "version_metadata_path"

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Init() error
	Set(key string, value interface{})
	SetDefault(key string, value interface{})
	AllSettings() map[string]interface{}
	IsSet(key string) bool
	Get(key string) interface{}
	GetBool(key string) bool
	GetInt(key string) int
	GetString(key string) string
	GetStringSlice(key string) []string
	UnmarshalKey(key string, rawVal interface{}, decoder ...viper.DecoderConfigOption) error
	GetBase64Decoded(key string) (string, error)
	ReadConfig(configFilePath string) error
}

Create mock using: mockgen -source=pkg/config/interface.go -destination=pkg/config/mock/mock_config.go

func Create

func Create() (Interface, error)

Directories

Path Synopsis
Package mock_config is a generated GoMock package.
Package mock_config is a generated GoMock package.

Jump to

Keyboard shortcuts

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