planpreview

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build(ctx context.Context, id string, cmd model.Command_BuildPlanPreview) ([]*model.ApplicationPlanPreviewResult, error)
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(
	gc gitClient,
	ac apiClient,
	cl commandLister,
	al applicationLister,
	cg lastTriggeredCommitGetter,
	sd secretDecrypter,
	appManifestsCache cache.Cache,
	cfg *config.PipedSpec,
	opts ...Option,
) *Handler

func (*Handler) Run

func (h *Handler) Run(ctx context.Context) error

Run starts running Handler until the given context has done.

type Option

type Option func(*options)

func WithCommandCheckInterval

func WithCommandCheckInterval(i time.Duration) Option

func WithCommandHandleTimeout

func WithCommandHandleTimeout(t time.Duration) Option

func WithCommandQueueBufferSize

func WithCommandQueueBufferSize(s int) Option

func WithLogger

func WithLogger(l *zap.Logger) Option

func WithWorkerNum

func WithWorkerNum(n int) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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