commands

package
v0.0.0-...-50ddf03 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2016 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuild

func GetBuild(client concourse.Client, jobName string, buildNameOrID string, pipelineName string) (atc.Build, error)

func SliceItoa

func SliceItoa(slice []int) string

Types

type AbortBuildCommand

type AbortBuildCommand struct {
	Job   flaghelpers.JobFlag `short:"j" long:"job"   required:"true" value-name:"PIPELINE/JOB"   description:"Name of a job to cancel"`
	Build string              `short:"b" long:"build" required:"true" description:"Name of the build to cancel"`
}

func (*AbortBuildCommand) Execute

func (command *AbortBuildCommand) Execute([]string) error

type BuildsCommand

type BuildsCommand struct {
	Count int                 `short:"c" long:"count" default:"50"															description:"number of builds you want to limit the return to"`
	Job   flaghelpers.JobFlag `short:"j" long:"job"									value-name:"PIPELINE/JOB"		description:"Name of a job to get builds for"`
}

func (*BuildsCommand) Execute

func (command *BuildsCommand) Execute([]string) error

type ChecklistCommand

type ChecklistCommand struct {
	Pipeline string `short:"p" long:"pipeline" required:"true" description:"The pipeline from which to generate the Checkfile"`
}

func (*ChecklistCommand) Execute

func (command *ChecklistCommand) Execute([]string) error

type ContainersCommand

type ContainersCommand struct{}

func (*ContainersCommand) Execute

func (command *ContainersCommand) Execute([]string) error

type DestroyPipelineCommand

type DestroyPipelineCommand struct {
	Pipeline        string `short:"p"  long:"pipeline" required:"true" description:"Pipeline to destroy"`
	SkipInteractive bool   `short:"n"  long:"non-interactive"          description:"Destroy the pipeline without confirmation"`
}

func (*DestroyPipelineCommand) Execute

func (command *DestroyPipelineCommand) Execute(args []string) error

type ExecuteCommand

type ExecuteCommand struct {
	TaskConfig     flaghelpers.PathFlag         `short:"c" long:"config" required:"true"                description:"The task config to execute"`
	Privileged     bool                         `short:"p" long:"privileged"                            description:"Run the task with full privileges"`
	ExcludeIgnored bool                         `` /* 182-byte string literal not displayed */
	Inputs         []flaghelpers.InputPairFlag  `` /* 134-byte string literal not displayed */
	InputsFrom     flaghelpers.JobFlag          `short:"j" long:"inputs-from" value-name:"PIPELINE/JOB" description:"A job to base the inputs on"`
	Outputs        []flaghelpers.OutputPairFlag `` /* 135-byte string literal not displayed */
	Tags           []string                     `` /* 135-byte string literal not displayed */
}

func (*ExecuteCommand) Execute

func (command *ExecuteCommand) Execute(args []string) error

type FlyCommand

type FlyCommand struct {
	Target rc.TargetName `short:"t" long:"target" description:"Concourse target name"`

	Version func() `short:"v" long:"version" description:"Print the version of Fly and exit"`

	Login LoginCommand `command:"login" alias:"l" description:"Authenticate with the target"`
	Sync  SyncCommand  `command:"sync"  alias:"s" description:"Download and replace the current fly from the target"`

	SetTeam SetTeamCommand `hidden:"yes" command:"set-team"  alias:"st" description:"Create or modify a team to have the given credentials"`

	Checklist ChecklistCommand `command:"checklist" alias:"cl" description:"Print a Checkfile of the given pipeline"`

	Execute ExecuteCommand `command:"execute" alias:"e" description:"Execute a one-off build using local bits"`
	Watch   WatchCommand   `command:"watch"   alias:"w" description:"Stream a build's output"`

	Containers ContainersCommand `command:"containers" alias:"cs" description:"Print the active containers"`
	Hijack     HijackCommand     `command:"hijack"     alias:"intercept" alias:"i" description:"Execute a command in a container"`

	PauseJob   PauseJobCommand   `command:"pause-job" alias:"pj" description:"Pause a job"`
	UnpauseJob UnpauseJobCommand `command:"unpause-job" alias:"uj" description:"Unpause a job"`

	Pipelines       PipelinesCommand       `command:"pipelines"        alias:"ps" description:"List the configured pipelines"`
	DestroyPipeline DestroyPipelineCommand `command:"destroy-pipeline" alias:"dp" description:"Destroy a pipeline"`
	GetPipeline     GetPipelineCommand     `command:"get-pipeline"     alias:"gp" description:"Get a pipeline's current configuration"`
	SetPipeline     SetPipelineCommand     `command:"set-pipeline"     alias:"sp" description:"Create or update a pipeline's configuration"`
	PausePipeline   PausePipelineCommand   `command:"pause-pipeline"   alias:"pp" description:"Pause a pipeline"`
	UnpausePipeline UnpausePipelineCommand `command:"unpause-pipeline" alias:"up" description:"Un-pause a pipeline"`
	RenamePipeline  RenamePipelineCommand  `command:"rename-pipeline"  alias:"rp" description:"Rename a pipeline"`

	Builds     BuildsCommand     `command:"builds"      alias:"bs" description:"List builds data"`
	AbortBuild AbortBuildCommand `command:"abort-build" alias:"ab" description:"Abort a build"`

	TriggerJob TriggerJobCommand `command:"trigger-job" alias:"tj" description:"Start a job in a pipeline"`

	Volumes VolumesCommand `command:"volumes" alias:"vs" description:"List the active volumes"`
	Workers WorkersCommand `command:"workers" alias:"ws" description:"List the registered workers"`
}
var Fly FlyCommand

type GetPipelineCommand

type GetPipelineCommand struct {
	Pipeline string `short:"p" long:"pipeline" required:"true" description:"Get configuration of this pipeline"`
	JSON     bool   `short:"j" long:"json"                     description:"Print config as json instead of yaml"`
}

func (*GetPipelineCommand) Execute

func (command *GetPipelineCommand) Execute(args []string) error

type HijackCommand

type HijackCommand struct {
	Job      flaghelpers.JobFlag      `short:"j" long:"job"   value-name:"PIPELINE/JOB"   description:"Name of a job to hijack"`
	Check    flaghelpers.ResourceFlag `short:"c" long:"check" value-name:"PIPELINE/CHECK" description:"Name of a resource's checking container to hijack"`
	Build    string                   `short:"b" long:"build"                             description:"Build number within the job, or global build ID"`
	StepName string                   `short:"s" long:"step"                              description:"Name of step to hijack (e.g. build, unit, resource name)"`
	Attempt  []int                    `short:"a" long:"attempt" description:"Attempt number of step to hijack. Can be specified multiple times for nested retries"`
}

func (*HijackCommand) Execute

func (command *HijackCommand) Execute(args []string) error

type LoginCommand

type LoginCommand struct {
	ATCURL   string `short:"c" long:"concourse-url" description:"Concourse URL to authenticate with"`
	Insecure bool   `short:"k" long:"insecure" description:"Skip verification of the endpoint's SSL certificate"`
	Username string `short:"u" long:"username" description:"Username for basic auth"`
	Password string `short:"p" long:"password" description:"Password for basic auth"`
}

func (*LoginCommand) Execute

func (command *LoginCommand) Execute(args []string) error

type PauseJobCommand

type PauseJobCommand struct {
	Job flaghelpers.JobFlag `short:"j" long:"job" required:"true" value-name:"PIPELINE/JOB" description:"Name of a job to pause"`
}

func (*PauseJobCommand) Execute

func (command *PauseJobCommand) Execute(args []string) error

type PausePipelineCommand

type PausePipelineCommand struct {
	Pipeline string `short:"p"  long:"pipeline" required:"true" description:"Pipeline to pause"`
}

func (*PausePipelineCommand) Execute

func (command *PausePipelineCommand) Execute(args []string) error

type PipelinesCommand

type PipelinesCommand struct{}

func (*PipelinesCommand) Execute

func (command *PipelinesCommand) Execute([]string) error

type RenamePipelineCommand

type RenamePipelineCommand struct {
	Pipeline string `short:"o"  long:"old-name" required:"true"  description:"Pipeline to rename"`
	Name     string `short:"n"  long:"new-name" required:"true"  description:"Name to set as pipeline name"`
}

func (*RenamePipelineCommand) Execute

func (rp *RenamePipelineCommand) Execute([]string) error

type SetPipelineCommand

type SetPipelineCommand struct {
	Pipeline        string                         `short:"p"  long:"pipeline" required:"true"      description:"Pipeline to configure"`
	Config          flaghelpers.PathFlag           `short:"c"  long:"config" required:"true"        description:"Pipeline configuration file"`
	Var             []flaghelpers.VariablePairFlag `` /* 140-byte string literal not displayed */
	VarsFrom        []flaghelpers.PathFlag         `` /* 157-byte string literal not displayed */
	SkipInteractive bool                           `short:"n"  long:"non-interactive"               description:"Skips interactions, uses default values"`
}

func (*SetPipelineCommand) Execute

func (command *SetPipelineCommand) Execute(args []string) error

type SetTeamCommand

type SetTeamCommand struct {
	TeamName string `short:"n" long:"team-name" required:"true"        description:"The team to create or modify"`

	BasicAuth struct {
		Username string `long:"username" description:"Username to use for basic auth."`
		Password string `long:"password" description:"Password to use for basic auth."`
	} `group:"Basic Authentication" namespace:"basic-auth"`

	GitHubAuth struct {
		ClientID      string                       `long:"client-id"     description:"Application client ID for enabling GitHub OAuth."`
		ClientSecret  string                       `long:"client-secret" description:"Application client secret for enabling GitHub OAuth."`
		Organizations []string                     `long:"organization"  description:"GitHub organization whose members will have access." value-name:"ORG"`
		Teams         []flaghelpers.GitHubTeamFlag `long:"team"          description:"GitHub team whose members will have access." value-name:"ORG/TEAM"`
		Users         []string                     `long:"user"          description:"GitHub user to permit access." value-name:"LOGIN"`
	} `group:"GitHub Authentication" namespace:"github-auth"`
}

func (*SetTeamCommand) Execute

func (command *SetTeamCommand) Execute([]string) error

func (*SetTeamCommand) GetTeam

func (command *SetTeamCommand) GetTeam(basicAuthEnabled, gitHubAuthEnabled bool) atc.Team

func (*SetTeamCommand) ValidateFlags

func (command *SetTeamCommand) ValidateFlags() (bool, bool, error)

type SyncCommand

type SyncCommand struct{}

func (*SyncCommand) Execute

func (command *SyncCommand) Execute(args []string) error

type TriggerJobCommand

type TriggerJobCommand struct {
	Job flaghelpers.JobFlag `short:"j" long:"job" required:"true" value-name:"PIPELINE/JOB"   description:"Name of a job to start"`
}

func (*TriggerJobCommand) Execute

func (command *TriggerJobCommand) Execute(args []string) error

type UnpauseJobCommand

type UnpauseJobCommand struct {
	Job flaghelpers.JobFlag `short:"j" long:"job" required:"true" value-name:"PIPELINE/JOB" description:"Name of a job to unpause"`
}

func (*UnpauseJobCommand) Execute

func (command *UnpauseJobCommand) Execute(args []string) error

type UnpausePipelineCommand

type UnpausePipelineCommand struct {
	Pipeline string `short:"p" long:"pipeline" required:"true" description:"Pipeline to unpause"`
}

func (*UnpausePipelineCommand) Execute

func (command *UnpausePipelineCommand) Execute(args []string) error

type VolumesCommand

type VolumesCommand struct{}

func (*VolumesCommand) Execute

func (command *VolumesCommand) Execute([]string) error

type WatchCommand

type WatchCommand struct {
	Job   flaghelpers.JobFlag `short:"j" long:"job"   value-name:"PIPELINE/JOB"   description:"Watches builds of the given job"`
	Build string              `short:"b" long:"build"                               description:"Watches a specific build"`
}

func (*WatchCommand) Execute

func (command *WatchCommand) Execute(args []string) error

type WorkersCommand

type WorkersCommand struct {
	Details bool `short:"d" long:"details" description:"Print additional information for each worker"`
}

func (*WorkersCommand) Execute

func (command *WorkersCommand) Execute([]string) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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