models

package
v0.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	Class                   string            `json:"_class,omitempty"`
	LastBuiltRevision       LastBuiltRevision `json:"lastBuiltRevision,omitempty"`
	MercurialRevisionNumber string            `json:"mercurialRevisionNumber"`
}

type ApiBuildResponse

type ApiBuildResponse struct {
	Class             string    `json:"_class"`
	Number            int64     `json:"number"`
	Result            string    `json:"result"`
	Actions           []Actions `json:"actions"`
	Duration          float64   `json:"duration"`
	Timestamp         int64     `json:"timestamp"`
	DisplayName       string    `json:"displayName"`
	EstimatedDuration float64   `json:"estimatedDuration"`
	ChangeSet         ChangeSet `json:"changeSet"`
}

type ApiResponse

type ApiResponse struct {
	URL             string           `json:"url"`
	Jobs            []Job            `json:"jobs"`
	Mode            string           `json:"mode"`
	Views           []Views          `json:"views"`
	Class           string           `json:"_class"`
	NodeName        string           `json:"nodeName"`
	UseCrumbs       bool             `json:"useCrumbs"`
	Description     interface{}      `json:"description"`
	OverallLoad     OverallLoad      `json:"overallLoad"`
	PrimaryView     PrimaryView      `json:"primaryView"`
	UseSecurity     bool             `json:"useSecurity"`
	NumExecutors    int              `json:"numExecutors"`
	QuietingDown    bool             `json:"quietingDown"`
	UnlabeledLoad   UnlabeledLoad    `json:"unlabeledLoad"`
	AssignedLabels  []AssignedLabels `json:"assignedLabels"`
	SlaveAgentPort  int              `json:"slaveAgentPort"`
	NodeDescription string           `json:"nodeDescription"`
}

type AssignedLabels

type AssignedLabels struct {
	Name string `json:"name"`
}

type ChangeSet

type ChangeSet struct {
	Class     string     `json:"_class"`
	Kind      string     `json:"kind"`
	Revisions []Revision `json:"revision"`
}

type JenkinsBuild

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

JenkinsBuild db entity for jenkins build

func (JenkinsBuild) TableName

func (JenkinsBuild) TableName() string

type JenkinsBuildProps

type JenkinsBuildProps struct {
	Duration          float64 // build time
	DisplayName       string  // "#7"
	EstimatedDuration float64
	Number            int64
	Result            string
	Timestamp         int64     // start time
	StartTime         time.Time // convered by timestamp
	CommitSha         string
}

JenkinsBuildProps current used jenkins build props

type JenkinsConnection

type JenkinsConnection struct {
	Endpoint string `mapstructure:"endpoint" validate:"required" env:"JENKINS_ENDPOINT" json:"endpoint"`
	Username string `mapstructure:"username" validate:"required" env:"JENKINS_USERNAME" json:"username"`
	Password string `mapstructure:"password" validate:"required" env:"JENKINS_PASSWORD" json:"password"`
	Proxy    string `mapstructure:"proxy" env:"JENKINS_PROXY" json:"proxy"`
}

This object conforms to what the frontend currently sends.

type JenkinsJob

type JenkinsJob struct {
	JenkinsJobProps
	common.NoPKModel
}

JenkinsJob db entity for jenkins job

func (JenkinsJob) TableName

func (JenkinsJob) TableName() string

type JenkinsJobProps

type JenkinsJobProps struct {
	Name  string `gorm:"primaryKey;type:varchar(255)"`
	Class string `gorm:"type:varchar(255)"`
	Color string `gorm:"type:varchar(255)"`
	Base  string `gorm:"type:varchar(255)"`
}

JenkinsJobProps current used jenkins job props

type JenkinsResponse

type JenkinsResponse struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	JenkinsConnection
}

type Job

type Job struct {
	URL   string `json:"url"`
	Name  string `json:"name"`
	Color string `json:"color"`
	Class string `json:"_class"`
}

type LastBuiltRevision

type LastBuiltRevision struct {
	SHA1 string `json:"SHA1"`
}

type OverallLoad

type OverallLoad struct {
}

type PrimaryView

type PrimaryView struct {
	URL   string `json:"url"`
	Name  string `json:"name"`
	Class string `json:"_class"`
}

type Revision

type Revision struct {
	Module   string
	Revision int
}

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

type UnlabeledLoad

type UnlabeledLoad struct {
	Class string `json:"_class"`
}

type Views

type Views struct {
	URL   string `json:"url"`
	Name  string `json:"name"`
	Class string `json:"_class"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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