Documentation
¶
Index ¶
- Constants
- func BuildsGetID(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3BuildsIDOK, error)
- func BuildsList(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3BuildsOK, error)
- func FormattedPrint(a ...interface{}) error
- func JobByID(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3JobsIDOK, error)
- func JobsList(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3JobsOK, error)
- func PipelinesList(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3PipelinesOK, error)
Constants ¶
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.