archived

package
v0.14.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureBuildDefinition

type AzureBuildDefinition struct {
	archived.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 {
	RestConnection `mapstructure:",squash"`
	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"`
	archived.NoPKModel
}

func (AzureRepo) TableName

func (AzureRepo) TableName() string

type AzureResponse

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

type BaseConnection

type BaseConnection struct {
	Name string `gorm:"type:varchar(100);uniqueIndex" json:"name" validate:"required"`
	archived.Model
}

type BasicAuth

type BasicAuth struct {
	Username string `mapstructure:"username" validate:"required" json:"username"`
	Password string `mapstructure:"password" validate:"required" json:"password" encrypt:"yes"`
}

type RestConnection

type RestConnection struct {
	BaseConnection   `mapstructure:",squash"`
	Endpoint         string `mapstructure:"endpoint" validate:"required" json:"endpoint"`
	Proxy            string `mapstructure:"proxy" json:"proxy"`
	RateLimitPerHour int    `comment:"api request rate limt per hour" json:"rateLimit"`
}

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"`
}

Jump to

Keyboard shortcuts

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