Help us shape the future of Go! Take the 2026 Go Developer Survey

deployrequest

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseCmd

func CloseCmd(ch *cmdutil.Helper) *cobra.Command

CloseCmd is the command for closing deploy requests.

func CreateCmd

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

CreateCmd is the command for creating deploy requests.

func DeployCmd

func DeployCmd(ch *cmdutil.Helper) *cobra.Command

DeployCmd is the command for deploying deploy requests.

func DeployRequestCmd

func DeployRequestCmd(ch *cmdutil.Helper) *cobra.Command

DeployRequestCmd encapsulates the commands for creatind and managing Deploy Requests.

func DiffCmd

func DiffCmd(ch *cmdutil.Helper) *cobra.Command

DiffCmd is the command for showing the diff of a deploy request.

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd is the command for listing deploy requests.

func ReviewCmd

func ReviewCmd(ch *cmdutil.Helper) *cobra.Command

ReviewCmd is the command for reviewing (approve, comment, etc.) a deploy request.

func ShowCmd

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

ShowCmd is the command to show a deploy request.

Types

type DeployRequest added in v0.14.0

type DeployRequest struct {
	ID         string `header:"id" json:"id"`
	Number     uint64 `header:"number" json:"number"`
	Branch     string `header:"branch,timestamp(ms|utc|human)" json:"branch"`
	IntoBranch string `header:"into_branch,timestamp(ms|utc|human)" json:"into_branch"`

	Approved bool `header:"approved" json:"approved"`

	State string `header:"state" json:"state"`

	Deployment inlineDeployment `header:"inline" json:"deployment"`
	CreatedAt  int64            `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt  int64            `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	ClosedAt   *int64           `header:"closed_at,timestamp(ms|utc|human),-" json:"closed_at"`
}

DeployRequest returns a table-serializable deplo request model.

func (*DeployRequest) MarshalCSVValue added in v0.17.0

func (d *DeployRequest) MarshalCSVValue() interface{}

Jump to

Keyboard shortcuts

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