command

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2016 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// IDParam Argument for IDParams (general)
	IDParam = 0
	// CountParam Argument number for count
	CountParam int = 0
	// PageNumParam Argument number for pages
	PageNumParam int = 1

	// JobIDParam Argument number for job ids
	JobIDParam int = 1
)

Variables

This section is empty.

Functions

func BuildsGetID

func BuildsGetID(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3BuildsIDOK, error)

BuildsGetID given an ID, get the build information

func BuildsList

func BuildsList(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3BuildsOK, error)

BuildsList is called by the client command builds-list if # args is 0, defaults to listing out 50 builds on page 1 if # args is 2, gets the first argument number of builds, and the page #

func FormattedPrint

func FormattedPrint(a ...interface{}) error

FormattedPrint Marshals and formats the prints

func JobByID

func JobByID(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3JobsIDOK, error)

JobByID Get a specified job by ID returns an error if unable to marshal data or unable to connect

func JobsList

func JobsList(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3JobsOK, error)

JobsList handles the GET endpoints for jobs if # args is 0, prints the first 50 jobs on page 1 if # args is 2, it prints the first argument number of jobs, on the second argument page number

func PipelinesList

func PipelinesList(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3PipelinesOK, error)

PipelinesList handles the get endpoints for pipelines command When number of args are 0, it defaults to getting 50 responses on the first page When number of args is 2, the first argument is the number of responses, and the second is the page number Prints out information regarding pipelines

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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