apply

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package apply provides the global apply command for applying all staged changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(cfg stgcli.GlobalConfig) *cli.Command

Command returns the global apply command for the given provider config.

Types

type Runner

type Runner struct {
	// Services lists the provider services in stable apply order.
	Services []ServiceApply
	// ProviderLabel is the human-readable provider name (e.g. "AWS").
	ProviderLabel   string
	Store           store.ReadWriteOperator
	Stdout          io.Writer
	Stderr          io.Writer
	IgnoreConflicts bool
}

Runner executes the apply command.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Run executes the apply command.

type ServiceApply added in v0.8.1

type ServiceApply struct {
	Service  staging.Service
	Strategy staging.ApplyStrategy
}

ServiceApply pairs a service with its (possibly nil) apply strategy. The strategy is nil when no changes are staged for that service.

Jump to

Keyboard shortcuts

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