models

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(cred *Credential) error

func Delete

func Delete(name string) 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL