controller

package
v0.0.0-...-dbbdc9a Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedRemovalHook

type CombinedRemovalHook []RemovalHook

func (CombinedRemovalHook) OnRemove

func (h CombinedRemovalHook) OnRemove(serviceName []string) error

type Controller

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

func New

func New(service *service.Service, removalHook RemovalHook, opts ...Option) *Controller

func (*Controller) Create

func (c *Controller) Create(ctx context.Context) (service.Output, error)

func (*Controller) RemoveReplacer

func (c *Controller) RemoveReplacer(ctx context.Context) error

RemoveReplacer removes intermediate replacer containers, which would otherwise prevent compose from successfully recreate services.

type Option

type Option func(c *Controller)

func WithLogger

func WithLogger(logger *slog.Logger) Option

type RecorderHook

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

func (*RecorderHook) OnRemove

func (h *RecorderHook) OnRemove(serviceName []string) error

type RemovalHook

type RemovalHook interface {
	OnRemove(serviceName []string) error
}

type RemovalHookFn

type RemovalHookFn func(serviceNames []string) error

func (RemovalHookFn) OnRemove

func (fn RemovalHookFn) OnRemove(serviceNames []string) error

Jump to

Keyboard shortcuts

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