Documentation ¶
Index ¶
- type AnalysisData
- type Token
- func (t *Token) GetID() uuid.UUID
- func (t *Token) GetKey() uuid.UUID
- func (t *Token) GetTable() string
- func (t *Token) Map() map[string]interface{}
- func (t *Token) SetCreateData() *Token
- func (t *Token) SetKey(value uuid.UUID) *Token
- func (t *Token) TableName() string
- func (t *Token) ToBytes() []byte
- func (t *Token) ToString() string
- func (t *Token) Validate(isRequiredRepositoryID bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisData ¶
type AnalysisData struct { Analysis *horusec.Analysis `json:"analysis"` RepositoryName string `json:"repositoryName"` }
func (*AnalysisData) ToBytes ¶
func (a *AnalysisData) ToBytes() []byte
type Token ¶
type Token struct { TokenID uuid.UUID `json:"tokenID" swaggerignore:"true" gorm:"Column:token_id"` Description string `json:"description" gorm:"Column:description"` RepositoryID *uuid.UUID `json:"repositoryID" swaggerignore:"true" gorm:"Column:repository_id"` CompanyID uuid.UUID `json:"companyID" swaggerignore:"true" gorm:"Column:company_id"` SuffixValue string `json:"suffixValue" swaggerignore:"true" gorm:"Column:suffix_value"` Value string `json:"value" swaggerignore:"true" gorm:"Column:value"` CreatedAt time.Time `json:"createdAt" swaggerignore:"true" gorm:"Column:created_at"` ExpiresAt time.Time `json:"expiresAt" swaggerignore:"true" gorm:"Column:expires_at"` // contains filtered or unexported fields }
func (*Token) SetCreateData ¶
Click to show internal directories.
Click to hide internal directories.