dbschema

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithPrefix = func(tableName string) string {
	return "" + tableName
}

Functions

This section is empty.

Types

type NgingSshUser

type NgingSshUser struct {
	Id          uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"ID" json:"id" xml:"id"`
	Uid         uint   `db:"uid" bson:"uid" comment:"UID" json:"uid" xml:"uid"`
	Host        string `db:"host" bson:"host" comment:"主机名" json:"host" xml:"host"`
	Port        int    `db:"port" bson:"port" comment:"端口" json:"port" xml:"port"`
	Charset     string `db:"charset" bson:"charset" comment:"字符集" json:"charset" xml:"charset"`
	Username    string `db:"username" bson:"username" comment:"用户名" json:"username" xml:"username"`
	Password    string `db:"password" bson:"password" comment:"密码" json:"password" xml:"password"`
	Name        string `db:"name" bson:"name" comment:"账号名称" json:"name" xml:"name"`
	Options     string `db:"options" bson:"options" comment:"其它选项(JSON)" json:"options" xml:"options"`
	PrivateKey  string `db:"private_key" bson:"private_key" comment:"私钥内容" json:"private_key" xml:"private_key"`
	Passphrase  string `db:"passphrase" bson:"passphrase" comment:"私钥口令" json:"passphrase" xml:"passphrase"`
	Protocol    string `db:"protocol" bson:"protocol" comment:"连接协议" json:"protocol" xml:"protocol"`
	SftpRootDir string `db:"sftp_root_dir" bson:"sftp_root_dir" comment:"SFTP根目录" json:"sftp_root_dir" xml:"sftp_root_dir"`
	Description string `db:"description" bson:"description" comment:"说明" json:"description" xml:"description"`
	GroupId     uint   `db:"group_id" bson:"group_id" comment:"组" json:"group_id" xml:"group_id"`
	Created     uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Updated     uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	// contains filtered or unexported fields
}

NgingSshUser 数据库账号

func NewNgingSshUser

func NewNgingSshUser(ctx echo.Context) *NgingSshUser

func (*NgingSshUser) AsKV

func (a *NgingSshUser) AsKV(keyField string, valueField string, inputRows ...[]*NgingSshUser) param.Store

func (*NgingSshUser) AsMap

func (a *NgingSshUser) AsMap(onlyFields ...string) param.Store

func (*NgingSshUser) AsRow

func (a *NgingSshUser) AsRow(onlyFields ...string) param.Store

func (*NgingSshUser) Base_ added in v1.4.0

func (a *NgingSshUser) Base_() factory.Baser

func (*NgingSshUser) BatchValidate

func (a *NgingSshUser) BatchValidate(kvset map[string]interface{}) error

func (*NgingSshUser) CPAFrom

func (a *NgingSshUser) CPAFrom(source factory.Model) factory.Model

func (*NgingSshUser) ConnID added in v1.1.0

func (a *NgingSshUser) ConnID() int

func (*NgingSshUser) Context

func (a *NgingSshUser) Context() echo.Context

func (*NgingSshUser) Count

func (a *NgingSshUser) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*NgingSshUser) Delete

func (a *NgingSshUser) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingSshUser) Deletex

func (a *NgingSshUser) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingSshUser) EventOFF

func (a *NgingSshUser) EventOFF(off ...bool) factory.Model

func (*NgingSshUser) EventON

func (a *NgingSshUser) EventON(on ...bool) factory.Model

func (*NgingSshUser) Exists

func (a *NgingSshUser) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)

func (*NgingSshUser) FromRow

func (a *NgingSshUser) FromRow(row map[string]interface{})

func (*NgingSshUser) Get

func (a *NgingSshUser) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingSshUser) GroupBy

func (a *NgingSshUser) GroupBy(keyField string, inputRows ...[]*NgingSshUser) map[string][]*NgingSshUser

func (*NgingSshUser) InitObjects

func (a *NgingSshUser) InitObjects() *[]*NgingSshUser

func (*NgingSshUser) Insert

func (a *NgingSshUser) Insert() (pk interface{}, err error)

func (*NgingSshUser) KeyBy

func (a *NgingSshUser) KeyBy(keyField string, inputRows ...[]*NgingSshUser) map[string]*NgingSshUser

func (*NgingSshUser) List

func (a *NgingSshUser) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*NgingSshUser) ListByOffset

func (a *NgingSshUser) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*NgingSshUser) ListPage

func (a *NgingSshUser) ListPage(cond *db.Compounds, sorts ...interface{}) error

func (*NgingSshUser) ListPageAs

func (a *NgingSshUser) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error

func (*NgingSshUser) Name_

func (a *NgingSshUser) Name_() string

func (*NgingSshUser) Namer

func (a *NgingSshUser) Namer() func(factory.Model) string

func (*NgingSshUser) New

func (a *NgingSshUser) New(structName string, connID ...int) factory.Model

func (*NgingSshUser) NewObjects

func (a *NgingSshUser) NewObjects() factory.Ranger

func (*NgingSshUser) NewParam

func (a *NgingSshUser) NewParam() *factory.Param

func (*NgingSshUser) Objects

func (a *NgingSshUser) Objects() []*NgingSshUser

func (*NgingSshUser) Param

func (a *NgingSshUser) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*NgingSshUser) Reset

func (a *NgingSshUser) Reset() *NgingSshUser

func (*NgingSshUser) Set

func (a *NgingSshUser) Set(key interface{}, value ...interface{})

func (*NgingSshUser) SetConnID

func (a *NgingSshUser) SetConnID(connID int) factory.Model

func (*NgingSshUser) SetContext

func (a *NgingSshUser) SetContext(ctx echo.Context) factory.Model

func (*NgingSshUser) SetNamer

func (a *NgingSshUser) SetNamer(namer func(factory.Model) string) factory.Model

func (*NgingSshUser) SetParam

func (a *NgingSshUser) SetParam(param *factory.Param) factory.Model

func (*NgingSshUser) Short_

func (a *NgingSshUser) Short_() string

func (*NgingSshUser) Struct_

func (a *NgingSshUser) Struct_() string

func (*NgingSshUser) Trans

func (a *NgingSshUser) Trans() factory.Transactioner

func (*NgingSshUser) Update

func (a *NgingSshUser) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingSshUser) UpdateByFields

func (a *NgingSshUser) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)

func (*NgingSshUser) UpdateField

func (a *NgingSshUser) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*NgingSshUser) UpdateFields

func (a *NgingSshUser) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*NgingSshUser) UpdateValues

func (a *NgingSshUser) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)

func (*NgingSshUser) Updatex

func (a *NgingSshUser) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingSshUser) UpdatexByFields

func (a *NgingSshUser) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)

func (*NgingSshUser) UpdatexField added in v1.2.0

func (a *NgingSshUser) UpdatexField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (affected int64, err error)

func (*NgingSshUser) UpdatexFields added in v1.2.0

func (a *NgingSshUser) UpdatexFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (affected int64, err error)

func (*NgingSshUser) Upsert

func (a *NgingSshUser) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*NgingSshUser) Use

func (*NgingSshUser) Validate

func (a *NgingSshUser) Validate(field string, value interface{}) error

func (*NgingSshUser) XObjects

func (a *NgingSshUser) XObjects() Slice_NgingSshUser

type NgingSshUserGroup

type NgingSshUserGroup struct {
	Id          uint   `db:"id,omitempty,pk" bson:"id,omitempty" comment:"" json:"id" xml:"id"`
	Uid         uint   `db:"uid" bson:"uid" comment:"用户ID" json:"uid" xml:"uid"`
	Name        string `db:"name" bson:"name" comment:"组名" json:"name" xml:"name"`
	Description string `db:"description" bson:"description" comment:"说明" json:"description" xml:"description"`
	Created     uint   `db:"created" bson:"created" comment:"创建时间" json:"created" xml:"created"`
	Updated     uint   `db:"updated" bson:"updated" comment:"修改时间" json:"updated" xml:"updated"`
	// contains filtered or unexported fields
}

NgingSshUserGroup SSH账号组

func NewNgingSshUserGroup

func NewNgingSshUserGroup(ctx echo.Context) *NgingSshUserGroup

func (*NgingSshUserGroup) AsKV

func (a *NgingSshUserGroup) AsKV(keyField string, valueField string, inputRows ...[]*NgingSshUserGroup) param.Store

func (*NgingSshUserGroup) AsMap

func (a *NgingSshUserGroup) AsMap(onlyFields ...string) param.Store

func (*NgingSshUserGroup) AsRow

func (a *NgingSshUserGroup) AsRow(onlyFields ...string) param.Store

func (*NgingSshUserGroup) Base_ added in v1.4.0

func (a *NgingSshUserGroup) Base_() factory.Baser

func (*NgingSshUserGroup) BatchValidate

func (a *NgingSshUserGroup) BatchValidate(kvset map[string]interface{}) error

func (*NgingSshUserGroup) CPAFrom

func (a *NgingSshUserGroup) CPAFrom(source factory.Model) factory.Model

func (*NgingSshUserGroup) ConnID added in v1.1.0

func (a *NgingSshUserGroup) ConnID() int

func (*NgingSshUserGroup) Context

func (a *NgingSshUserGroup) Context() echo.Context

func (*NgingSshUserGroup) Count

func (a *NgingSshUserGroup) Count(mw func(db.Result) db.Result, args ...interface{}) (int64, error)

func (*NgingSshUserGroup) Delete

func (a *NgingSshUserGroup) Delete(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingSshUserGroup) Deletex

func (a *NgingSshUserGroup) Deletex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingSshUserGroup) EventOFF

func (a *NgingSshUserGroup) EventOFF(off ...bool) factory.Model

func (*NgingSshUserGroup) EventON

func (a *NgingSshUserGroup) EventON(on ...bool) factory.Model

func (*NgingSshUserGroup) Exists

func (a *NgingSshUserGroup) Exists(mw func(db.Result) db.Result, args ...interface{}) (bool, error)

func (*NgingSshUserGroup) FromRow

func (a *NgingSshUserGroup) FromRow(row map[string]interface{})

func (*NgingSshUserGroup) Get

func (a *NgingSshUserGroup) Get(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingSshUserGroup) GroupBy

func (a *NgingSshUserGroup) GroupBy(keyField string, inputRows ...[]*NgingSshUserGroup) map[string][]*NgingSshUserGroup

func (*NgingSshUserGroup) InitObjects

func (a *NgingSshUserGroup) InitObjects() *[]*NgingSshUserGroup

func (*NgingSshUserGroup) Insert

func (a *NgingSshUserGroup) Insert() (pk interface{}, err error)

func (*NgingSshUserGroup) KeyBy

func (a *NgingSshUserGroup) KeyBy(keyField string, inputRows ...[]*NgingSshUserGroup) map[string]*NgingSshUserGroup

func (*NgingSshUserGroup) List

func (a *NgingSshUserGroup) List(recv interface{}, mw func(db.Result) db.Result, page, size int, args ...interface{}) (func() int64, error)

func (*NgingSshUserGroup) ListByOffset

func (a *NgingSshUserGroup) ListByOffset(recv interface{}, mw func(db.Result) db.Result, offset, size int, args ...interface{}) (func() int64, error)

func (*NgingSshUserGroup) ListPage

func (a *NgingSshUserGroup) ListPage(cond *db.Compounds, sorts ...interface{}) error

func (*NgingSshUserGroup) ListPageAs

func (a *NgingSshUserGroup) ListPageAs(recv interface{}, cond *db.Compounds, sorts ...interface{}) error

func (*NgingSshUserGroup) Name_

func (a *NgingSshUserGroup) Name_() string

func (*NgingSshUserGroup) Namer

func (a *NgingSshUserGroup) Namer() func(factory.Model) string

func (*NgingSshUserGroup) New

func (a *NgingSshUserGroup) New(structName string, connID ...int) factory.Model

func (*NgingSshUserGroup) NewObjects

func (a *NgingSshUserGroup) NewObjects() factory.Ranger

func (*NgingSshUserGroup) NewParam

func (a *NgingSshUserGroup) NewParam() *factory.Param

func (*NgingSshUserGroup) Objects

func (a *NgingSshUserGroup) Objects() []*NgingSshUserGroup

func (*NgingSshUserGroup) Param

func (a *NgingSshUserGroup) Param(mw func(db.Result) db.Result, args ...interface{}) *factory.Param

func (*NgingSshUserGroup) Reset

func (*NgingSshUserGroup) Set

func (a *NgingSshUserGroup) Set(key interface{}, value ...interface{})

func (*NgingSshUserGroup) SetConnID

func (a *NgingSshUserGroup) SetConnID(connID int) factory.Model

func (*NgingSshUserGroup) SetContext

func (a *NgingSshUserGroup) SetContext(ctx echo.Context) factory.Model

func (*NgingSshUserGroup) SetNamer

func (a *NgingSshUserGroup) SetNamer(namer func(factory.Model) string) factory.Model

func (*NgingSshUserGroup) SetParam

func (a *NgingSshUserGroup) SetParam(param *factory.Param) factory.Model

func (*NgingSshUserGroup) Short_

func (a *NgingSshUserGroup) Short_() string

func (*NgingSshUserGroup) Struct_

func (a *NgingSshUserGroup) Struct_() string

func (*NgingSshUserGroup) Trans

func (*NgingSshUserGroup) Update

func (a *NgingSshUserGroup) Update(mw func(db.Result) db.Result, args ...interface{}) (err error)

func (*NgingSshUserGroup) UpdateByFields

func (a *NgingSshUserGroup) UpdateByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (err error)

func (*NgingSshUserGroup) UpdateField

func (a *NgingSshUserGroup) UpdateField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (err error)

func (*NgingSshUserGroup) UpdateFields

func (a *NgingSshUserGroup) UpdateFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (err error)

func (*NgingSshUserGroup) UpdateValues

func (a *NgingSshUserGroup) UpdateValues(mw func(db.Result) db.Result, keysValues *db.KeysValues, args ...interface{}) (err error)

func (*NgingSshUserGroup) Updatex

func (a *NgingSshUserGroup) Updatex(mw func(db.Result) db.Result, args ...interface{}) (affected int64, err error)

func (*NgingSshUserGroup) UpdatexByFields

func (a *NgingSshUserGroup) UpdatexByFields(mw func(db.Result) db.Result, fields []string, args ...interface{}) (affected int64, err error)

func (*NgingSshUserGroup) UpdatexField added in v1.2.0

func (a *NgingSshUserGroup) UpdatexField(mw func(db.Result) db.Result, field string, value interface{}, args ...interface{}) (affected int64, err error)

func (*NgingSshUserGroup) UpdatexFields added in v1.2.0

func (a *NgingSshUserGroup) UpdatexFields(mw func(db.Result) db.Result, kvset map[string]interface{}, args ...interface{}) (affected int64, err error)

func (*NgingSshUserGroup) Upsert

func (a *NgingSshUserGroup) Upsert(mw func(db.Result) db.Result, args ...interface{}) (pk interface{}, err error)

func (*NgingSshUserGroup) Use

func (*NgingSshUserGroup) Validate

func (a *NgingSshUserGroup) Validate(field string, value interface{}) error

func (*NgingSshUserGroup) XObjects

type Slice_NgingSshUser

type Slice_NgingSshUser []*NgingSshUser

func (Slice_NgingSshUser) AsKV

func (s Slice_NgingSshUser) AsKV(keyField string, valueField string) param.Store

func (Slice_NgingSshUser) FromList

func (s Slice_NgingSshUser) FromList(data interface{}) Slice_NgingSshUser

func (Slice_NgingSshUser) GroupBy

func (s Slice_NgingSshUser) GroupBy(keyField string) map[string][]*NgingSshUser

func (Slice_NgingSshUser) KeyBy

func (s Slice_NgingSshUser) KeyBy(keyField string) map[string]*NgingSshUser

func (Slice_NgingSshUser) Range

func (s Slice_NgingSshUser) Range(fn func(m factory.Model) error) error

func (Slice_NgingSshUser) RangeRaw

func (s Slice_NgingSshUser) RangeRaw(fn func(m *NgingSshUser) error) error

func (Slice_NgingSshUser) Transform

func (s Slice_NgingSshUser) Transform(transfers map[string]param.Transfer) []param.Store

type Slice_NgingSshUserGroup

type Slice_NgingSshUserGroup []*NgingSshUserGroup

func (Slice_NgingSshUserGroup) AsKV

func (s Slice_NgingSshUserGroup) AsKV(keyField string, valueField string) param.Store

func (Slice_NgingSshUserGroup) FromList

func (s Slice_NgingSshUserGroup) FromList(data interface{}) Slice_NgingSshUserGroup

func (Slice_NgingSshUserGroup) GroupBy

func (s Slice_NgingSshUserGroup) GroupBy(keyField string) map[string][]*NgingSshUserGroup

func (Slice_NgingSshUserGroup) KeyBy

func (s Slice_NgingSshUserGroup) KeyBy(keyField string) map[string]*NgingSshUserGroup

func (Slice_NgingSshUserGroup) Range

func (s Slice_NgingSshUserGroup) Range(fn func(m factory.Model) error) error

func (Slice_NgingSshUserGroup) RangeRaw

func (s Slice_NgingSshUserGroup) RangeRaw(fn func(m *NgingSshUserGroup) error) error

func (Slice_NgingSshUserGroup) Transform

func (s Slice_NgingSshUserGroup) Transform(transfers map[string]param.Transfer) []param.Store

Jump to

Keyboard shortcuts

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