runtime

package
v0.0.0-...-abe9435 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Scope      string //archive,pipeline,env
	Repository string // archive,制品库ID
	Name       string //archive,pipeline,env
	Path       string //archive,pipeline
}

type Build

type Build struct {
	Id                string
	PipelineId        string
	PipelineVersionId string
	Trigger           string
	Status            string
	Ref               string
	Error             string
	Event             string
	Timestamp         time.Time
	Title             string
	Message           string
	Vars              map[string]*Variables
	Started           time.Time
	Finished          time.Time
	Created           time.Time
	Updated           time.Time
	Before            string
	After             string
	Repo              *Repository
	Stages            []*Stage
}

type BuildShow

type BuildShow struct {
	Id         string       `json:"id"`
	PipelineId string       `json:"pipelineId"`
	Status     string       `json:"status"`
	Error      string       `json:"error"`
	Event      string       `json:"event"`
	Started    time.Time    `json:"started"`
	Finished   time.Time    `json:"finished"`
	Created    time.Time    `json:"created"`
	Updated    time.Time    `json:"updated"`
	Stages     []*StageShow `json:"stages"`
}

type CmdShow

type CmdShow struct {
	Id       string    `json:"id"`
	Status   string    `json:"status"`
	Started  time.Time `json:"started"`
	Finished time.Time `json:"finished"`
}

type Repository

type Repository struct {
	Name     string
	Token    string
	Sha      string
	CloneURL string
}

type Stage

type Stage struct {
	Id          string
	BuildId     string
	Name        string
	DisplayName string
	Stage       string
	Status      string
	Event       string
	Error       string
	ExitCode    int
	Started     time.Time
	Stopped     time.Time
	Finished    time.Time
	Created     time.Time
	Updated     time.Time
	Version     string
	OnSuccess   bool
	OnFailure   bool
	Labels      map[string]string
	Steps       []*Step
}

type StageShow

type StageShow struct {
	Id       string      `json:"id"`
	BuildId  string      `json:"buildId"`
	Status   string      `json:"status"`
	Event    string      `json:"event"`
	Error    string      `json:"error"`
	Started  time.Time   `json:"started"`
	Stopped  time.Time   `json:"stopped"`
	Finished time.Time   `json:"finished"`
	Created  time.Time   `json:"created"`
	Updated  time.Time   `json:"updated"`
	Steps    []*StepShow `json:"steps"`
}

type Step

type Step struct {
	Id           string
	BuildId      string
	StageId      string
	Step         string
	DisplayName  string
	Name         string
	Input        map[string]string
	Env          map[string]string
	MustCopy     bool
	RepoPath     string
	Commands     interface{}
	Status       string
	Event        string
	Error        string
	ExitCode     int
	ErrIgnore    bool
	Started      time.Time
	Stopped      time.Time
	Finished     time.Time
	Version      string
	Waits        []string
	Image        string
	Artifacts    []*Artifact
	UseArtifacts []*UseArtifact
}

type StepShow

type StepShow struct {
	Id       string     `json:"id"`
	BuildId  string     `json:"buildId"`
	StageId  string     `json:"stageId"`
	Status   string     `json:"status"`
	Event    string     `json:"event"`
	Error    string     `json:"error"`
	ExitCode int        `json:"exitCode"`
	Started  time.Time  `json:"started"`
	Stopped  time.Time  `json:"stopped"`
	Finished time.Time  `json:"finished"`
	Updated  time.Time  `json:"updated"`
	Cmds     []*CmdShow `json:"cmds"`
}

type UseArtifact

type UseArtifact struct {
	Scope      string //archive,pipeline,env
	Repository string // archive,制品库ID
	Name       string //archive,pipeline,env
	Path       string //archive,pipeline
	IsUrl      bool
	Alias      string

	SourceStage string //pipeline
	SourceStep  string //pipeline
}

type Variables

type Variables struct {
	Name   string
	Value  string
	Secret bool
}

Jump to

Keyboard shortcuts

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