Documentation ¶
Index ¶
- Variables
- func LookupSubscriptionID(ctx context.Context, subscriptionName string) (string, error)
- func NewStepInspectScopes() map[string]StepInspectScope
- func RunPipeline(pipeline *Pipeline, ctx context.Context, options *PipelineRunOptions) error
- func RunResourceGroup(rg *ResourceGroup, ctx context.Context, options *PipelineRunOptions, ...) error
- func RunStep(s Step, ctx context.Context, kubeconfigFile string, ...) (output, error)
- func ValidatePipelineSchema(pipelineContent []byte) error
- type ARMStep
- type DelegateChildZoneStep
- type DryRun
- type ExecutionTarget
- type Input
- type InspectOptions
- type Pipeline
- func (p *Pipeline) AbsoluteFilePath(filePath string) (string, error)
- func (p *Pipeline) DeepCopy(newPipelineFilePath string) (*Pipeline, error)
- func (p *Pipeline) Inspect(ctx context.Context, options *InspectOptions, writer io.Writer) error
- func (p *Pipeline) PipelineFilePath() string
- func (p *Pipeline) Validate() error
- type PipelineRunOptions
- type ResourceGroup
- type SetCertificateIssuerStep
- type ShellStep
- func (s *ShellStep) Description() string
- func (s *ShellStep) WithDependsOn(dependsOn ...string) *ShellStep
- func (s *ShellStep) WithDryRun(dryRun DryRun) *ShellStep
- func (s *ShellStep) WithOutputFunc(outputFunc outPutHandler) *ShellStep
- func (s *ShellStep) WithVariables(variables ...Variable) *ShellStep
- type Step
- type StepInspectScope
- type StepMeta
- type Variable
- type VariableRef
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDeploymentTimeoutSeconds = 30 * 60
Functions ¶
func LookupSubscriptionID ¶
func NewStepInspectScopes ¶
func NewStepInspectScopes() map[string]StepInspectScope
func RunPipeline ¶
func RunPipeline(pipeline *Pipeline, ctx context.Context, options *PipelineRunOptions) error
func RunResourceGroup ¶
func RunResourceGroup(rg *ResourceGroup, ctx context.Context, options *PipelineRunOptions, executionTarget ExecutionTarget, outputs map[string]output) error
func RunStep ¶
func RunStep(s Step, ctx context.Context, kubeconfigFile string, executionTarget ExecutionTarget, options *PipelineRunOptions, outPuts map[string]output) (output, error)
func ValidatePipelineSchema ¶
Types ¶
type ARMStep ¶
type ARMStep struct { StepMeta `yaml:",inline"` Command string `yaml:"command,omitempty"` Variables []Variable `yaml:"variables,omitempty"` Template string `yaml:"template,omitempty"` Parameters string `yaml:"parameters,omitempty"` DeploymentLevel string `yaml:"deploymentLevel,omitempty"` OutputOnly bool `yaml:"outputOnly,omitempty"` }
func NewARMStep ¶
func (*ARMStep) Description ¶
func (*ARMStep) WithDependsOn ¶
func (*ARMStep) WithOutputOnly ¶
func (*ARMStep) WithVariables ¶
type DelegateChildZoneStep ¶
type DelegateChildZoneStep struct { StepMeta `yaml:",inline"` ParentZoneName VariableRef `yaml:"parentZone"` ChildZoneName VariableRef `yaml:"childZone"` }
func (*DelegateChildZoneStep) Description ¶
func (s *DelegateChildZoneStep) Description() string
type ExecutionTarget ¶
type InspectOptions ¶
type InspectOptions struct { Scope string Format string Step string Region string Vars config.Variables ScopeFunctions map[string]StepInspectScope }
InspectOptions contains the options for the Inspect method
func NewInspectOptions ¶
func NewInspectOptions(vars config.Variables, region, step, scope, format string) *InspectOptions
NewInspectOptions creates a new PipelineInspectOptions struct
type Pipeline ¶
type Pipeline struct { ServiceGroup string `yaml:"serviceGroup"` RolloutName string `yaml:"rolloutName"` ResourceGroups []*ResourceGroup `yaml:"resourceGroups"` // contains filtered or unexported fields }
func NewPipelineFromFile ¶
func (*Pipeline) AbsoluteFilePath ¶
func (*Pipeline) PipelineFilePath ¶
type PipelineRunOptions ¶
type ResourceGroup ¶
type ResourceGroup struct { Name string `yaml:"name"` Subscription string `yaml:"subscription"` AKSCluster string `yaml:"aksCluster,omitempty"` Steps []Step `yaml:"steps"` }
func (*ResourceGroup) Validate ¶
func (rg *ResourceGroup) Validate() error
type SetCertificateIssuerStep ¶
type SetCertificateIssuerStep struct { StepMeta `yaml:",inline"` VaultBaseUrl VariableRef `yaml:"vaultBaseUrl"` Provider VariableRef `yaml:"provider"` }
func (*SetCertificateIssuerStep) Description ¶
func (s *SetCertificateIssuerStep) Description() string
type ShellStep ¶
type ShellStep struct { StepMeta `yaml:",inline"` Command string `yaml:"command,omitempty"` Variables []Variable `yaml:"variables,omitempty"` DryRun DryRun `yaml:"dryRun,omitempty"` // contains filtered or unexported fields }
func NewShellStep ¶
func (*ShellStep) Description ¶
func (*ShellStep) WithDependsOn ¶
func (*ShellStep) WithDryRun ¶
func (*ShellStep) WithOutputFunc ¶
func (*ShellStep) WithVariables ¶
type StepInspectScope ¶
type StepInspectScope func(Step, *InspectOptions, io.Writer) error
type StepMeta ¶
type StepMeta struct { Name string `yaml:"name"` Action string `yaml:"action"` DependsOn []string `yaml:"dependsOn,omitempty"` }
func (*StepMeta) ActionType ¶
func (*StepMeta) Dependencies ¶
type VariableRef ¶
Click to show internal directories.
Click to hide internal directories.