Documentation ¶
Index ¶
- type ConfigurationManager
- func (cm *ConfigurationManager) Clear(key string) error
- func (cm *ConfigurationManager) Get(key string) (interface{}, error)
- func (cm *ConfigurationManager) GetGithubToken() string
- func (cm *ConfigurationManager) GetGitlabToken() string
- func (cm *ConfigurationManager) GetUserConfig() (*UserConfig, bool, error)
- func (cm *ConfigurationManager) ParseToken() (*DecodedToken, error)
- func (cm *ConfigurationManager) Set(key string, value string) error
- func (cm *ConfigurationManager) SyncRules(defaultRulesList map[string][]byte, folderName string) error
- func (cm *ConfigurationManager) UpdateUserConfig(userConfig *UserConfig) error
- type DecodedToken
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationManager ¶
type ConfigurationManager struct {
TokenGenerationUrl string
}
func New ¶
func New() *ConfigurationManager
func (*ConfigurationManager) Clear ¶
func (cm *ConfigurationManager) Clear(key string) error
func (*ConfigurationManager) Get ¶
func (cm *ConfigurationManager) Get(key string) (interface{}, error)
func (*ConfigurationManager) GetGithubToken ¶
func (cm *ConfigurationManager) GetGithubToken() string
func (*ConfigurationManager) GetGitlabToken ¶
func (cm *ConfigurationManager) GetGitlabToken() string
func (*ConfigurationManager) GetUserConfig ¶
func (cm *ConfigurationManager) GetUserConfig() (*UserConfig, bool, error)
func (*ConfigurationManager) ParseToken ¶
func (cm *ConfigurationManager) ParseToken() (*DecodedToken, error)
func (*ConfigurationManager) Set ¶
func (cm *ConfigurationManager) Set(key string, value string) error
func (*ConfigurationManager) SyncRules ¶
func (cm *ConfigurationManager) SyncRules(defaultRulesList map[string][]byte, folderName string) error
func (*ConfigurationManager) UpdateUserConfig ¶
func (cm *ConfigurationManager) UpdateUserConfig(userConfig *UserConfig) error
type DecodedToken ¶
type UserConfig ¶
Click to show internal directories.
Click to hide internal directories.