commandstore

package
v0.50.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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.ReportableCommand
	ListBuildPlanPreviewCommands() []model.ReportableCommand
	ListPipedCommands() []model.ReportableCommand
}

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

type Store

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

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