models

package
v0.0.0-...-0e69e21 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	ID       uint
	Host     string `gorm:"default:nil"`
	App      string `gorm:"default:nil"`
	User     string `gorm:"default:nil"`
	Password string `gorm:"default:nil"`
}

func (*Credential) Delete

func (c *Credential) Delete(db *gorm.DB)

func (*Credential) Export

func (c *Credential) Export(db *gorm.DB) (creds []*Credential)

func (*Credential) Get

func (c *Credential) Get(db *gorm.DB) (creds []*Credential)

func (*Credential) Purge

func (c *Credential) Purge(db *gorm.DB, toPurge string)

func (*Credential) Save

func (c *Credential) Save(db *gorm.DB)

func (*Credential) Update

func (c *Credential) Update(id uint, db *gorm.DB)

Jump to

Keyboard shortcuts

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