Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(cred *Credential) error
func Save ¶ added in v0.3.0
func Save(cred *Credential) error
Types ¶
type Credential ¶
type Credential struct { gorm.Model Name string `gorm:"index;column:name;unique"` Login string `gorm:"column:login"` Password string `gorm:"column:password"` Description string `gorm:"column:description"` }
func ReadAll ¶
func ReadAll(name string) ([]Credential, error)
func ReadFirst ¶ added in v0.3.0
func ReadFirst(name string) (Credential, error)
Click to show internal directories.
Click to hide internal directories.