commandstore

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lister

type Lister interface {
	ListApplicationCommands() []model.ReportableCommand
	ListDeploymentCommands() []model.ReportableCommand
	ListStageCommands(deploymentID, stageID string) []*model.Command
	ListBuildPlanPreviewCommands() []model.ReportableCommand
	ListPipedCommands() []model.ReportableCommand
}

Lister helps list commands. All objects returned here must be treated as read-only.

type Reporter added in v0.53.0

type Reporter interface {
	// ReportStageCommandsHandled reports all stage commands of the given stage as handled successfully.
	ReportStageCommandsHandled(ctx context.Context, deploymentID, stageID string) error
}

Reporter helps report commands.

type Store

type Store interface {
	Run(ctx context.Context) error
	Lister() Lister
	Reporter() Reporter
}

func NewStore

func NewStore(apiClient apiClient, gracePeriod time.Duration, logger *zap.Logger) Store

NewStore creates a new command store instance. This watches/fetches new commands from the control plane and then notifies them to the registered subscribers.

Jump to

Keyboard shortcuts

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