entity

package
v0.11.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Generated by protoc-ddl. protoc-gen-entity: v0.1

Index

Constants

View Source
const SchemaHash = "6bbc319829fc90e78fa6547d799da627e0e118769e0db3befc648cec3dc7f2fc"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	Id        int32
	Name      string
	Value     string
	UserId    int32
	IssuerId  int32
	CreatedAt time.Time
	UpdatedAt *time.Time

	User   *User
	Issuer *User
	// contains filtered or unexported fields
}

func (*AccessToken) ChangedColumn

func (e *AccessToken) ChangedColumn() []ddl.Column

func (*AccessToken) Copy

func (e *AccessToken) Copy() *AccessToken

func (*AccessToken) IsChanged

func (e *AccessToken) IsChanged() bool

func (*AccessToken) ResetMark

func (e *AccessToken) ResetMark()

type Code

type Code struct {
	Id              int32
	Code            string
	Challenge       string
	ChallengeMethod string
	UserId          int32
	IssuedAt        time.Time

	User *User
	// contains filtered or unexported fields
}

func (*Code) ChangedColumn

func (e *Code) ChangedColumn() []ddl.Column

func (*Code) Copy

func (e *Code) Copy() *Code

func (*Code) IsChanged

func (e *Code) IsChanged() bool

func (*Code) ResetMark

func (e *Code) ResetMark()

type Column

type Column struct {
	Name  string
	Value interface{}
}

type GPGKey added in v0.9.0

type GPGKey struct {
	UserId    int32
	Key       string
	CreatedAt time.Time
	UpdatedAt *time.Time

	User *User
	// contains filtered or unexported fields
}

func (*GPGKey) ChangedColumn added in v0.9.0

func (e *GPGKey) ChangedColumn() []ddl.Column

func (*GPGKey) Copy added in v0.9.0

func (e *GPGKey) Copy() *GPGKey

func (*GPGKey) IsChanged added in v0.9.0

func (e *GPGKey) IsChanged() bool

func (*GPGKey) ResetMark added in v0.9.0

func (e *GPGKey) ResetMark()

type Node

type Node struct {
	Id        int32
	Hostname  string
	CreatedAt time.Time
	UpdatedAt *time.Time
	// contains filtered or unexported fields
}

func (*Node) ChangedColumn

func (e *Node) ChangedColumn() []ddl.Column

func (*Node) Copy

func (e *Node) Copy() *Node

func (*Node) IsChanged

func (e *Node) IsChanged() bool

func (*Node) ResetMark

func (e *Node) ResetMark()

type Relay

type Relay struct {
	Id          int32
	Name        string
	Addr        string
	FromAddr    string
	ConnectedAt time.Time
	CreatedAt   time.Time
	UpdatedAt   *time.Time
	// contains filtered or unexported fields
}

func (*Relay) ChangedColumn

func (e *Relay) ChangedColumn() []ddl.Column

func (*Relay) Copy

func (e *Relay) Copy() *Relay

func (*Relay) IsChanged

func (e *Relay) IsChanged() bool

func (*Relay) ResetMark

func (e *Relay) ResetMark()

type RevokedCertificate

type RevokedCertificate struct {
	Id           int32
	CommonName   string
	SerialNumber []byte
	Agent        bool
	Comment      string
	RevokedAt    time.Time
	IssuedAt     time.Time
	CreatedAt    time.Time
	UpdatedAt    *time.Time
	// contains filtered or unexported fields
}

func (*RevokedCertificate) ChangedColumn

func (e *RevokedCertificate) ChangedColumn() []ddl.Column

func (*RevokedCertificate) Copy

func (*RevokedCertificate) IsChanged

func (e *RevokedCertificate) IsChanged() bool

func (*RevokedCertificate) ResetMark

func (e *RevokedCertificate) ResetMark()

type RoleBinding

type RoleBinding struct {
	Id         int32
	UserId     int32
	Role       string
	Maintainer bool
	CreatedAt  time.Time
	UpdatedAt  *time.Time

	User *User
	// contains filtered or unexported fields
}

func (*RoleBinding) ChangedColumn

func (e *RoleBinding) ChangedColumn() []ddl.Column

func (*RoleBinding) Copy

func (e *RoleBinding) Copy() *RoleBinding

func (*RoleBinding) IsChanged

func (e *RoleBinding) IsChanged() bool

func (*RoleBinding) ResetMark

func (e *RoleBinding) ResetMark()

type SSHKey

type SSHKey struct {
	UserId    int32
	Key       string
	CreatedAt time.Time
	UpdatedAt *time.Time

	User *User
	// contains filtered or unexported fields
}

func (*SSHKey) ChangedColumn

func (e *SSHKey) ChangedColumn() []ddl.Column

func (*SSHKey) Copy

func (e *SSHKey) Copy() *SSHKey

func (*SSHKey) IsChanged

func (e *SSHKey) IsChanged() bool

func (*SSHKey) ResetMark

func (e *SSHKey) ResetMark()

type SerialNumber

type SerialNumber struct {
	Id           int64
	SerialNumber []byte
	// contains filtered or unexported fields
}

func (*SerialNumber) ChangedColumn

func (e *SerialNumber) ChangedColumn() []ddl.Column

func (*SerialNumber) Copy

func (e *SerialNumber) Copy() *SerialNumber

func (*SerialNumber) IsChanged

func (e *SerialNumber) IsChanged() bool

func (*SerialNumber) ResetMark

func (e *SerialNumber) ResetMark()

type SignedCertificate

type SignedCertificate struct {
	Id             int32
	Certificate    []byte
	SerialNumberId int64
	P12            []byte
	Agent          bool
	Comment        string
	IssuedAt       time.Time

	SerialNumber *SerialNumber
	// contains filtered or unexported fields
}

func (*SignedCertificate) ChangedColumn

func (e *SignedCertificate) ChangedColumn() []ddl.Column

func (*SignedCertificate) Copy

func (*SignedCertificate) IsChanged

func (e *SignedCertificate) IsChanged() bool

func (*SignedCertificate) ResetMark

func (e *SignedCertificate) ResetMark()

type Token

type Token struct {
	Id       int32
	Token    string
	UserId   int32
	IssuedAt time.Time

	User *User
	// contains filtered or unexported fields
}

func (*Token) ChangedColumn

func (e *Token) ChangedColumn() []ddl.Column

func (*Token) Copy

func (e *Token) Copy() *Token

func (*Token) IsChanged

func (e *Token) IsChanged() bool

func (*Token) ResetMark

func (e *Token) ResetMark()

type User

type User struct {
	Id        int32
	Identity  string
	LoginName string
	Admin     bool
	Type      string
	Comment   string
	LastLogin time.Time
	CreatedAt time.Time
	UpdatedAt *time.Time
	// contains filtered or unexported fields
}

func (*User) ChangedColumn

func (e *User) ChangedColumn() []ddl.Column

func (*User) Copy

func (e *User) Copy() *User

func (*User) IsChanged

func (e *User) IsChanged() bool

func (*User) ResetMark

func (e *User) ResetMark()

type UserState

type UserState struct {
	Id        int32
	State     string
	Unique    string
	CreatedAt time.Time
	UpdatedAt *time.Time
	// contains filtered or unexported fields
}

func (*UserState) ChangedColumn

func (e *UserState) ChangedColumn() []ddl.Column

func (*UserState) Copy

func (e *UserState) Copy() *UserState

func (*UserState) IsChanged

func (e *UserState) IsChanged() bool

func (*UserState) ResetMark

func (e *UserState) ResetMark()

Jump to

Keyboard shortcuts

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