models

package
v0.0.0-...-9333659 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

monta un servidor y agrega la tablas.sql

mysql server

docker run -d -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=secret mysql:5.7.40-debian docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mysql docker exec -it mysql-db mysql -p

Mis Libros:

libros futuro es devops libros herramientas devops

Mi canal de cultura Devops

canal de youtube sobre devops

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Items

type Items struct {
	Type  string            `json:"type"`
	Items map[string]string `json:"item"`
}

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) Add

func (this *Secret) Add(owner string, name string, text string) error

func (*Secret) AddNormal

func (this *Secret) AddNormal(owner string, name string, text string) error

func (*Secret) Additem

func (t *Secret) Additem(owner string, name string, token string) error

func (*Secret) Additem1

func (t *Secret) Additem1(owner string, name string, user string, pass string) error

func (*Secret) Additem2

func (t *Secret) Additem2(owner string, name string, account string, user string, pass string) error

func (*Secret) AdditemCommand

func (t *Secret) AdditemCommand(owner string, name string, token string) error

func (*Secret) AdditemFile

func (t *Secret) AdditemFile(owner string, name string, token string) error

func (*Secret) CreateItem

func (this *Secret) CreateItem(secret string, types string) Items

func (*Secret) Del

func (this *Secret) Del(owner string, name string) error

func (*Secret) DelForId

func (this *Secret) DelForId(owner string, id int64) error

func (*Secret) Get

func (this *Secret) Get(owner string, name string) (Secret, error)

func (*Secret) GetForId

func (this *Secret) GetForId(owner string, id int64) (Secret, error)

func (*Secret) List

func (this *Secret) List(owner string) []Secret

func (*Secret) Update

func (this *Secret) Update(owner string, name string, secret string) error

func (*Secret) UpdateEncry

func (this *Secret) UpdateEncry(owner string, id int64, newSecret string) (Secret, error)

Jump to

Keyboard shortcuts

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