Documentation
¶
Index ¶
Constants ¶
View Source
const ERR_APPLICATION_NAME_BLANK = "sorry the application name must not be blank"
View Source
const ERR_FACTORY_INCONSISTENT_STATE = "the Factory is in an inconsistent state, please only use public methods to modify"
View Source
const ERR_INVALID_OUTPUT_TYPE = "sorry the output type you have set is not valid and not supported"
View Source
const ERR_KEY_MUST_MATCH_REGEX = "sorry the key must only include letters and underscores [0-9A-Za-z_]"
View Source
const OUTPUT_TYPE_INI = "ini"
View Source
const OUTPUT_TYPE_INVALID = "nri"
View Source
const OUTPUT_TYPE_JSON = "json"
View Source
const REGEX_KEY_NAME = "(?m)^[0-9A-Za-z_]+$"
View Source
const TEST_VAR_APPLICATION_NAME = "my_test_credential_application"
View Source
const TEST_VAR_ENVIRONMENT_BAD_KEY = "bad key with no underscores"
View Source
const TEST_VAR_ENVIRONMENT_PASSWORD_KEY = "secret_key"
View Source
const TEST_VAR_ENVIRONMENT_USERNAME_KEY = "access_token"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
ApplicationName string `json:"application_name"`
ConfigurationDirectory string `json:"configuration_directory"`
CredentialFile string `json:"credential_file"`
UseEnvironment bool `json:"use_environment"`
Initialized bool `json:"initialized"`
OutputType string `json:"output_type"`
Alternates map[string]string `json:"alternates"`
}
func (*Factory) Initialize ¶
func (*Factory) SetEnvironmentKeys ¶
func (*Factory) SetOutputType ¶
Click to show internal directories.
Click to hide internal directories.