Documentation ¶
Index ¶
Constants ¶
View Source
const PACKAGR_CHEF_SUPERMARKET_TYPE = "chef_supermarket_type"
View Source
const PACKAGR_CHEF_SUPERMARKET_USERNAME = "chef_supermarket_username"
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_MGR_TYPE = "mgr_type"
View Source
const PACKAGR_NPM_AUTH_TOKEN = "npm_auth_token"
View Source
const PACKAGR_NPM_REGISTRY = "npm_registry"
View Source
const PACKAGR_PACKAGE_TYPE = "package_type"
View Source
const PACKAGR_PYPI_PASSWORD = "pypi_password"
View Source
const PACKAGR_PYPI_REPOSITORY = "pypi_repository"
View Source
const PACKAGR_PYPI_USERNAME = "pypi_username"
View Source
const PACKAGR_RUBYGEMS_API_KEY = "rubygems_api_key"
View Source
const PACKAGR_SCM = "scm"
View Source
const PACKAGR_SCM_LOCAL_BRANCH = "scm_local_branch"
View Source
const PACKAGR_SCM_RELEASE_ASSETS = "scm_release_assets"
View Source
const PACKAGR_SCM_REMOTE_BRANCH = "scm_remote_branch"
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 ReadConfig(configFilePath string) 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) }
Create mock using: mockgen -source=pkg/config/interface.go -destination=pkg/config/mock/mock_config.go
Click to show internal directories.
Click to hide internal directories.