models

package
v0.14.0-alpha8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureBuild

type AzureBuild struct {
	common.NoPKModel
	// collected fields
	ConnectionId      uint64    `gorm:"primaryKey"`
	JobName           string    `gorm:"primaryKey;type:varchar(255)"`
	Duration          float64   // build time
	DisplayName       string    `gorm:"type:varchar(255)"` // "#7"
	EstimatedDuration float64   // EstimatedDuration
	Number            int64     `gorm:"primaryKey"`
	Result            string    // Result
	Timestamp         int64     // start time
	StartTime         time.Time // convered by timestamp
	CommitSha         string    `gorm:"type:varchar(255)"`
}

func (AzureBuild) TableName

func (AzureBuild) TableName() string

type AzureBuildDefinition

type AzureBuildDefinition struct {
	common.NoPKModel
	// collected fields
	ConnectionId     uint64 `gorm:"primaryKey"`
	ProjectId        string `gorm:"primaryKey;type:varchar(255)"`
	AzureId          int    `gorm:"primaryKey"`
	AuthorId         string `gorm:"type:varchar(255)"`
	QueueId          int
	Url              string    `gorm:"type:varchar(255)"`
	Name             string    `gorm:"type:varchar(255)"`
	Path             string    `gorm:"type:varchar(255)"`
	Type             string    `gorm:"type:varchar(255)"`
	QueueStatus      string    `json:"queueStatus" gorm:"type:varchar(255)"`
	Revision         int       `json:"revision"`
	AzureCreatedDate time.Time `json:"createdDate"`
}

func (AzureBuildDefinition) TableName

func (AzureBuildDefinition) TableName() string

type AzureConnection

type AzureConnection struct {
	helper.RestConnection `mapstructure:",squash"`
	helper.BasicAuth      `mapstructure:",squash"`
}

This object conforms to what the frontend currently sends.

func (AzureConnection) TableName

func (AzureConnection) TableName() string

type AzureRepo

type AzureRepo struct {
	ConnectionId  uint64 `gorm:"primaryKey"`
	AzureId       string `gorm:"primaryKey;type:varchar(255)" json:"id"`
	Name          string `gorm:"type:varchar(255)" json:"name"`
	Url           string `gorm:"type:varchar(255)" json:"url"`
	ProjectId     string `gorm:"type:varchar(255);index"`
	DefaultBranch string `json:"defaultBranch"`
	Size          int    `json:"size"`
	RemoteURL     string `json:"remoteUrl"`
	SshUrl        string `gorm:"type:varchar(255)" json:"sshUrl"`
	WebUrl        string `gorm:"type:varchar(255)" json:"webUrl"`
	IsDisabled    bool   `json:"isDisabled"`
	common.NoPKModel
}

func (AzureRepo) TableName

func (AzureRepo) TableName() string

type AzureResponse

type AzureResponse struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	AzureConnection
}

type TestConnectionRequest

type TestConnectionRequest struct {
	Endpoint string `json:"endpoint" validate:"required"`
	Username string `json:"username" validate:"required"`
	Password string `json:"password" validate:"required"`
	Proxy    string `json:"proxy"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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