syntax

package
v2.1.47 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdStepSyntax

func NewCmdStepSyntax(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepSyntax Steps a command object for the "step" command

func NewCmdStepSyntaxEffective

func NewCmdStepSyntaxEffective(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepSyntaxEffective Creates a new Command object

func NewCmdStepSyntaxSchema

func NewCmdStepSyntaxSchema(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepSyntaxSchema Steps a command object for the "step" command

func NewCmdStepSyntaxValidate

func NewCmdStepSyntaxValidate(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepSyntaxValidate Steps a command object for the "step" command

func NewCmdStepSyntaxValidateBuildPacks

func NewCmdStepSyntaxValidateBuildPacks(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepSyntaxValidateBuildPacks Creates a new Command object

func NewCmdStepSyntaxValidatePipeline

func NewCmdStepSyntaxValidatePipeline(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdStepSyntaxValidatePipeline Creates a new Command object

Types

type StepSyntaxEffectiveOptions

type StepSyntaxEffectiveOptions struct {
	step.StepOptions

	Pack              string
	BuildPackURL      string
	BuildPackRef      string
	Context           string
	CustomImage       string
	DefaultImage      string
	UseKaniko         bool
	KanikoImage       string
	ProjectID         string
	DockerRegistry    string
	DockerRegistryOrg string
	SourceName        string
	CustomEnvs        []string
	OutputFile        string
	ShortView         bool

	ValidateInCluster bool

	PodTemplates map[string]*corev1.Pod

	GitInfo         *gits.GitRepository
	VersionResolver *versionstream.VersionResolver
}

StepSyntaxEffectiveOptions contains the command line flags

func (*StepSyntaxEffectiveOptions) CreateEffectivePipeline

func (o *StepSyntaxEffectiveOptions) CreateEffectivePipeline(packsDir string, projectConfig *config.ProjectConfig, projectConfigFile string, resolver jenkinsfile.ImportFileResolver) (*config.ProjectConfig, error)

CreateEffectivePipeline takes a project config and generates the effective version of the pipeline for it, including build packs, inheritance, overrides, defaults, etc.

func (*StepSyntaxEffectiveOptions) LoadProjectConfig

func (o *StepSyntaxEffectiveOptions) LoadProjectConfig(workingDir string) (*config.ProjectConfig, string, error)

LoadProjectConfig loads the pipeline config from the given workingDir

func (*StepSyntaxEffectiveOptions) Run

Run implements this command

type StepSyntaxOptions

type StepSyntaxOptions struct {
	step.StepOptions
}

StepSyntaxOptions contains the command line flags

func (*StepSyntaxOptions) Run

func (o *StepSyntaxOptions) Run() error

Run implements this command

type StepSyntaxSchemaOptions

type StepSyntaxSchemaOptions struct {
	step.StepOptions

	Pipeline     bool
	BuildPack    bool
	Requirements bool
	Pod          bool
	Out          string
}

StepSyntaxSchemaOptions contains the command line flags

func (*StepSyntaxSchemaOptions) Run

func (o *StepSyntaxSchemaOptions) Run() error

Run implements this command

type StepSyntaxValidateBuildPacksOptions

type StepSyntaxValidateBuildPacksOptions struct {
	step.StepOptions
}

StepSyntaxValidateBuildPacksOptions contains the command line flags

func (*StepSyntaxValidateBuildPacksOptions) Run

Run implements this command

type StepSyntaxValidateOptions

type StepSyntaxValidateOptions struct {
	step.StepOptions
}

StepSyntaxValidateOptions contains the command line flags

func (*StepSyntaxValidateOptions) Run

Run implements this command

type StepSyntaxValidatePipelineOptions

type StepSyntaxValidatePipelineOptions struct {
	step.StepOptions

	Context string
	Dir     string
}

StepSyntaxValidatePipelineOptions contains the command line flags

func (*StepSyntaxValidatePipelineOptions) Run

Run implements this command

Jump to

Keyboard shortcuts

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