Documentation ¶
Index ¶
- Variables
- func CreateRepository(name string, setAsDefault bool, key string) (string, error)
- func Debugf(format string, args ...interface{})
- func DeleteRepository(name string) error
- func GetPassword(passwordName string, repoName string, key string) (string, error)
- func GetRepositories() ([]string, error)
- func SetPassword(passwordName string, repoName string, key string, password string) error
- type Config
- type PasswordEntry
- type Repository
- func (r *Repository) Create(key string, setAsDefault bool, configPath string) error
- func (r *Repository) Delete() error
- func (r *Repository) GetPassword(passwordName string, key string) (string, error)
- func (r *Repository) LoadFromFile(key string) error
- func (r *Repository) SetPassword(passwordName string, password string, key string) error
- func (r *Repository) WriteToFile(key string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var BASE_PATH = path.Join(os.Getenv("HOME"), ".devereux/")
View Source
var BOUNDARY_BYTES = []byte("私のホバークラフトは鰻でいっぱいです")
View Source
var CONFIG_PATH = path.Join(BASE_PATH, "config.yaml")
View Source
var DEBUG = true
View Source
var MIN_REPO_BYTE_LENGTH = 5 * int(math.Pow(10, float64(6)))
View Source
var REPO_PATH = path.Join(BASE_PATH, "repos/")
Functions ¶
func CreateRepository ¶
func DeleteRepository ¶
func GetPassword ¶
func GetRepositories ¶
Types ¶
type PasswordEntry ¶
type Repository ¶
type Repository struct { Name string `yaml:"name"` Entries []PasswordEntry `yaml:"entries"` // contains filtered or unexported fields }
func (*Repository) Create ¶
func (r *Repository) Create(key string, setAsDefault bool, configPath string) error
func (*Repository) Delete ¶
func (r *Repository) Delete() error
func (*Repository) GetPassword ¶
func (r *Repository) GetPassword(passwordName string, key string) (string, error)
func (*Repository) LoadFromFile ¶
func (r *Repository) LoadFromFile(key string) error
func (*Repository) SetPassword ¶
func (r *Repository) SetPassword(passwordName string, password string, key string) error
func (*Repository) WriteToFile ¶
func (r *Repository) WriteToFile(key string) error
Click to show internal directories.
Click to hide internal directories.