api

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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" gorm:"Column:expires_at"`
	IsExpirable  bool       `json:"isExpirable" gorm:"Column:is_expirable"`
	// contains filtered or unexported fields
}

func (*Token) GetID

func (t *Token) GetID() uuid.UUID

func (*Token) GetKey

func (t *Token) GetKey() uuid.UUID

func (*Token) GetTable

func (t *Token) GetTable() string

func (*Token) Map

func (t *Token) Map() map[string]interface{}

func (*Token) SetCreateData

func (t *Token) SetCreateData() *Token

func (*Token) SetExpiresAtTimeDefault added in v1.8.0

func (t *Token) SetExpiresAtTimeDefault() *Token

func (*Token) SetKey

func (t *Token) SetKey(value uuid.UUID) *Token

func (*Token) TableName

func (t *Token) TableName() string

func (*Token) ToBytes

func (t *Token) ToBytes() []byte

func (*Token) ToString

func (t *Token) ToString() string

func (*Token) Validate

func (t *Token) Validate(isRequiredRepositoryID bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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