messages

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestTypePR                = "PR"
	RequestTypeBranch            = "BRANCH"
	RequestTypeTag               = "TAG"
	RequestParameterKind         = "KIND"
	RequestParameterTarget       = "TARGET"
	RequestParameterRunScript    = "RUN_SCRIPT"
	RequestParameterSetupScript  = "SETUP_SCRIPT"
	RequestParameterRcvQueueName = "RCV_QUEUE_NAME"
	RequesParameterRepoURL       = "REPO_URL"
)
View Source
const (
	KindBuild  = "Build"
	KindLog    = "Log"
	KindStatus = "Status"
	KindFinal  = "Final"
	KindCancel = "Cancel"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildMessage

type BuildMessage struct {
	*Message
}

func NewBuildMessage

func NewBuildMessage(build int, jenkinsProject string) *BuildMessage

type CancelMessage

type CancelMessage struct {
	*Message
}

func NewCancelMessage

func NewCancelMessage(build int, jenkinsProject string) *CancelMessage

type FinalMessage

type FinalMessage struct {
	*Message
}

func NewFinalMessage

func NewFinalMessage(build int, jenkinsProject string) *FinalMessage

type LogsMessage

type LogsMessage struct {
	*Message
	Logs string `json:"Logs"`
}

func NewLogsMessage

func NewLogsMessage(build int, logs string, jenkinsProject string) *LogsMessage

type Message

type Message struct {
	Kind           string `json:"Kind"`
	Build          int    `json:"Build"`
	JenkinsProject string `json:"JenkinsProject"`
}

func (*Message) IsBuild

func (m *Message) IsBuild() bool

func (*Message) IsCancel

func (m *Message) IsCancel() bool

func (*Message) IsFinal

func (m *Message) IsFinal() bool

func (*Message) IsLog

func (m *Message) IsLog() bool

func (*Message) IsStatus

func (m *Message) IsStatus() bool

type RemoteBuildRequestMessage

type RemoteBuildRequestMessage struct {
	RepoURL        string `json:"repourl"`
	Kind           string `json:"kind"`
	Target         string `json:"target"`
	SetupScript    string `json:"setupscript"`
	RunScript      string `json:"runscript"`
	RcvIdent       string `json:"rcvident"`
	RunScriptURL   string `json:"runscripturl"`
	MainBranch     string `json:"mainbranch"`
	JenkinsProject string `json:"jenkinsproject"`
}

func NewRemoteBuildRequestMessage

func NewRemoteBuildRequestMessage(repoURL, kind, target, setupscript, runscript, recieveQueueName, runscripturl, mainBranch, jobName string) *RemoteBuildRequestMessage

type StatusMessage

type StatusMessage struct {
	*Message
	Success bool `json:"Success"`
}

func NewStatusMessage

func NewStatusMessage(build int, success bool, jenkinsProject string) *StatusMessage

Jump to

Keyboard shortcuts

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