Documentation ¶
Index ¶
- Constants
- func BuildsGetID(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3BuildsIDOK, error)
- func BuildsGetStep(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3BuildsIDStepsNameOK, error)
- func BuildsGetStepLogs(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3BuildsIDStepsNameLogsOK, 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 PipelinesGetID(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3PipelinesIDOK, 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 // StepParam Argument for Step param StepParam = 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 BuildsGetStep ¶ added in v0.0.3
func BuildsGetStep(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3BuildsIDStepsNameOK, error)
BuildsGetStep given an ID and stepName, get the step record
func BuildsGetStepLogs ¶ added in v0.0.3
func BuildsGetStepLogs(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3BuildsIDStepsNameLogsOK, error)
BuildsGetStepLogs given an ID and stepName, with optional flag to be set to specifiy which log number to start
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 PipelinesGetID ¶ added in v0.0.3
func PipelinesGetID(sdAPIClient *sd.ScrewdriverAPIDocumentation, c *cli.Context) (*v3.GetV3PipelinesIDOK, error)
PipelinesGetID get a specific pipeline by ID Requires one argument which is the ID of the pipeline to get information about
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.