commands

package
v0.0.0-...-a807302 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2015 License: Apache-2.0 Imports: 42 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)

Types

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"`
}

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                         `short:"x" long:"exclude-ignored"                       description:"Skip uploading .gitignored paths"`
	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 string `short:"t" long:"target" description:"Concourse target name or URL" default:"http://192.168.100.4:8080"`

	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"`

	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"`

	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"`

	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:"Name of a specific build of a job"`
	StepName string                   `short:"s" long:"step"                                description:"Name of step to hijack (e.g. build, unit, resource name)"`
}

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"`
}

func (*LoginCommand) Execute

func (command *LoginCommand) 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 SetPipelineCommand

type SetPipelineCommand struct {
	Pipeline        string                         `short:"p"  long:"pipeline" required:"true"      description:"Pipeline to configure"`
	Config          flaghelpers.PathFlag           `short:"c"  long:"config"                        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 SyncCommand

type SyncCommand struct{}

func (*SyncCommand) Execute

func (command *SyncCommand) 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