models

package
v0.13.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 AutoGenerated

type AutoGenerated struct {
	Quality    string `json:"quality"`
	AuthoredBy struct {
		DisplayName string `json:"displayName"`
		URL         string `json:"url"`
		Links       struct {
			Avatar struct {
				Href string `json:"href"`
			} `json:"avatar"`
		} `json:"_links"`
		ID         string `json:"id"`
		UniqueName string `json:"uniqueName"`
		ImageURL   string `json:"imageUrl"`
		Descriptor string `json:"descriptor"`
	} `json:"authoredBy"`
	Drafts []interface{} `json:"drafts"`
	Queue  struct {
		Links struct {
			Self struct {
				Href string `json:"href"`
			} `json:"self"`
		} `json:"_links"`
		ID   int    `json:"id"`
		Name string `json:"name"`
		URL  string `json:"url"`
		Pool struct {
			ID       int    `json:"id"`
			Name     string `json:"name"`
			IsHosted bool   `json:"isHosted"`
		} `json:"pool"`
	} `json:"queue"`
	ID          int       `json:"id"`
	Name        string    `json:"name"`
	URL         string    `json:"url"`
	URI         string    `json:"uri"`
	Path        string    `json:"path"`
	Type        string    `json:"type"`
	QueueStatus string    `json:"queueStatus"`
	Revision    int       `json:"revision"`
	CreatedDate time.Time `json:"createdDate"`
	Project     struct {
		ID             string    `json:"id"`
		Name           string    `json:"name"`
		URL            string    `json:"url"`
		State          string    `json:"state"`
		Revision       int       `json:"revision"`
		Visibility     string    `json:"visibility"`
		LastUpdateTime time.Time `json:"lastUpdateTime"`
	} `json:"project"`
}

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