build

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

nolint: dupl // ignore similar code among actions

Package build provides the defined CLI build actions for Vela.

Usage:

import "github.com/go-vela/cli/action/build"

nolint: dupl // ignore similar code among actions

nolint: dupl // ignore similar code among actions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Action  string
	Org     string
	Repo    string
	Number  int
	Event   string
	Status  string
	Branch  string
	Page    int
	PerPage int
	Output  string
}

Config represents the configuration necessary to perform build related requests with Vela.

func (*Config) Cancel added in v0.7.0

func (c *Config) Cancel(client *vela.Client) error

Cancel cancels a build based off the provided configuration.

func (*Config) Get

func (c *Config) Get(client *vela.Client) error

Get captures a list of builds based off the provided configuration.

func (*Config) Restart

func (c *Config) Restart(client *vela.Client) error

Restart restarts a build based off the provided configuration.

func (*Config) Validate

func (c *Config) Validate() error

Validate verifies the configuration provided.

func (*Config) View

func (c *Config) View(client *vela.Client) error

View inspects a build based off the provided configuration.

Jump to

Keyboard shortcuts

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