Documentation
¶
Index ¶
- Constants
- Variables
- func GetAliasesDir() string
- func GetConfigDir() string
- func GetConfigs() ([]string, error)
- func GetExtensionsDir() string
- func GetInstalledAliasManifests() []string
- func GetInstalledExtensionManifests() []string
- func GetRootAppDir() string
- func MvConfig(oldPath string) error
- func RefreshArmoryAuthorization(armories []*ArmoryConfig)
- func SaveSettings(settings *Settings) error
- type ArmoryConfig
- type Profile
- type Settings
Constants ¶
View Source
const (
AliasesDirName = "aliases"
)
View Source
const (
DefaultArmoryName = "Default"
)
View Source
const (
// ExtensionsDirName - Directory storing the client side extensions
ExtensionsDirName = "extensions"
)
Variables ¶
View Source
var ( // DefaultArmoryPublicKey - The default public key for the armory DefaultArmoryPublicKey = "RWSBpxpRWDrD7Fe+VvRE3c2VEDC2NK80rlNCj+BX0gz44Xw07r6KQD9L" // DefaultArmoryRepoURL - The default repo url for the armory DefaultArmoryRepoURL = "https://api.github.com/repos/sliverarmory/armory/releases" DefaultArmoryConfig = &ArmoryConfig{ PublicKey: DefaultArmoryPublicKey, RepoURL: DefaultArmoryRepoURL, Name: DefaultArmoryName, Enabled: true, } )
View Source
var ( MaliceDirName = ".config/malice" ConfigDirName = "configs" )
View Source
var (
DefaultSettings, _ = LoadSettings()
)
Functions ¶
func GetConfigDir ¶
func GetConfigDir() string
func GetConfigs ¶
func GetInstalledAliasManifests ¶
func GetInstalledAliasManifests() []string
GetInstalledAliasManifests - Returns a list of installed alias manifests
func GetInstalledExtensionManifests ¶
func GetInstalledExtensionManifests() []string
GetInstalledExtensionManifests - Returns a list of installed extension manifests
func GetRootAppDir ¶
func GetRootAppDir() string
func RefreshArmoryAuthorization ¶
func RefreshArmoryAuthorization(armories []*ArmoryConfig)
func SaveSettings ¶
SaveSettings - Save the current settings to disk
Types ¶
type ArmoryConfig ¶
type ArmoryConfig struct {
PublicKey string `json:"public_key"`
RepoURL string `json:"repo_url"`
Authorization string `json:"authorization"`
AuthorizationCmd string `json:"authorization_cmd"`
Name string `json:"name"`
Enabled bool `json:"enabled"`
}
ArmoryConfig - The armory config file
func GetArmoriesConfig ¶
func GetArmoriesConfig() []*ArmoryConfig
GetArmoriesConfig - The parsed armory config file
type Settings ¶
type Settings struct {
TableStyle string `json:"tables"`
AutoAdult bool `json:"autoadult"`
BeaconAutoResults bool `json:"beacon_autoresults"`
SmallTermWidth int `json:"small_term_width"`
AlwaysOverflow bool `json:"always_overflow"`
VimMode bool `json:"vim_mode"`
DefaultTimeout int
}
func LoadSettings ¶
Click to show internal directories.
Click to hide internal directories.