api

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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" swaggerignore:"true" gorm:"Column:expires_at"`
	// 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) 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