types

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectInfo

type ProjectInfo struct {
	ProjectID string `json:"project_id"`
}

type Run

type Run struct {
	ID          string              `json:"id"`
	RefType     string              `json:"ref_type"`
	Ref         string              `json:"ref"`
	Name        string              `json:"name"`
	Counter     uint64              `json:"counter"`
	Phase       string              `json:"phase"`
	Result      string              `json:"result"`
	SetupErrors []string            `json:"setup_errors"`
	Tasks       map[string]*RunTask `json:"tasks"`
	EnqueueTime *time.Time          `json:"enqueue_time"`
	StartTime   *time.Time          `json:"start_time"`
	EndTime     *time.Time          `json:"end_time"`
}

type RunTask

type RunTask struct {
	ID              string                    `json:"id"`
	Name            string                    `json:"name"`
	Level           int                       `json:"level"`
	Skip            bool                      `json:"skip"`
	Depends         map[string]*RunTaskDepend `json:"depends"`
	Status          string                    `json:"status"`
	Timedout        bool                      `json:"timedout"`
	WaitingApproval bool                      `json:"waiting_approval"`
	Approved        bool                      `json:"approved"`
	SetupStep       RunTaskStep               `json:"setup_step"`
	Steps           []*RunTaskStep            `json:"steps"`
	StartTime       *time.Time                `json:"start_time"`
	EndTime         *time.Time                `json:"end_time"`
}

type RunTaskDepend

type RunTaskDepend struct {
	TaskID     string   `json:"task_id"`
	Conditions []string `json:"conditions"`
}

type RunTaskStep

type RunTaskStep struct {
	Phase      string     `json:"phase"`
	ExitStatus *int       `json:"exit_status"`
	StartTime  *time.Time `json:"start_time"`
	EndTime    *time.Time `json:"end_time"`
}

type RunWebhook

type RunWebhook struct {
	// Version is the version of webhook struct data
	Version uint64 `json:"version"`

	// ProjectInfo is the info of the project
	ProjectInfo ProjectInfo `json:"project_info"`

	// Run is the current run status
	Run *Run `json:"run"`
}

Jump to

Keyboard shortcuts

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