Documentation
¶
Overview ¶
Copyright © 2024 Ayobami Bamigboye <ayo@greystein.com>
Index ¶
Constants ¶
View Source
const ( ParentCommand = "vault" InitSubCommand = "init" )
Variables ¶
View Source
var ( ErrConfigEmpty = errors.New("config loc is empty") ErrStoreTypeEmpty = errors.New("store type is empty") ErrStoreTypeInvalid = errors.New("store type is invalid") )
View Source
var ( DefaultRootConfig = "~/.vault/cli" DefaultConfigLoc = filepath.Join(DefaultRootConfig, "config") DefaultCipherLoc = filepath.Join(DefaultRootConfig, ".cipher") DefaultStoreLoc = filepath.Join(DefaultRootConfig, ".store") DefaultGobLoc = filepath.Join(DefaultRootConfig, ".gob") )
Functions ¶
Types ¶
type InstanceConfig ¶
type InstanceConfig struct {
ID string `json:"id"`
CipherLoc string `json:"cipher_loc"`
StoreLoc string `json:"store_loc"`
RedisString string `json:"redis_string"`
StoreType string `json:"store_type"`
Debug bool `json:"debug"`
LastUse int64 `json:"last_login"`
}
func NewInstanceConfig ¶
func NewInstanceConfig() *InstanceConfig
func (*InstanceConfig) JsonDecode ¶
func (ic *InstanceConfig) JsonDecode() error
func (*InstanceConfig) JsonEncode ¶
func (ic *InstanceConfig) JsonEncode(path string) error
Click to show internal directories.
Click to hide internal directories.