Documentation ¶
Index ¶
- type Items
- type Secret
- func (this *Secret) Add(owner string, name string, text string) error
- func (this *Secret) AddNormal(owner string, name string, text string) error
- func (t *Secret) Additem(owner string, name string, token string) error
- func (t *Secret) Additem1(owner string, name string, user string, pass string) error
- func (t *Secret) Additem2(owner string, name string, account string, user string, pass string) error
- func (t *Secret) AdditemCommand(owner string, name string, token string) error
- func (t *Secret) AdditemFile(owner string, name string, token string) error
- func (this *Secret) CreateItem(secret string, types string) Items
- func (this *Secret) Del(owner string, name string) error
- func (this *Secret) DelForId(owner string, id int64) error
- func (this *Secret) Get(owner string, name string) (Secret, error)
- func (this *Secret) GetForId(owner string, id int64) (Secret, error)
- func (this *Secret) List(owner string) []Secret
- func (this *Secret) Update(owner string, name string, secret string) error
- func (this *Secret) UpdateEncry(owner string, id int64, newSecret string) (Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secret ¶
type Secret struct { gorm.Model Owner string `gorm:"type:varchar(50);not null;"` Name string `gorm:"type:varchar(100);not null;"` Secret string `gorm:"type:blob;not null;"` }
var VarSecret *Secret
func (*Secret) AdditemCommand ¶
func (*Secret) AdditemFile ¶
Click to show internal directories.
Click to hide internal directories.