cleanup_app

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(
	deploymentsReader domain.DeploymentsReader,
	reader domain.AppsReader,
	writer domain.AppsWriter,
	artifactManager domain.ArtifactManager,
	backend domain.Backend,
) bus.RequestHandler[bus.UnitType, Command]

func OnAppCleanupRequestedHandler

func OnAppCleanupRequestedHandler(scheduler bus.Scheduler) bus.SignalHandler[domain.AppCleanupRequested]

Upon receiving a cleanup request, queue a job to remove everything related to the application.

Types

type Command

type Command struct {
	bus.Command[bus.UnitType]

	ID string `json:"id"`
}

Cleanup an application artifacts, images, networks, volumes and so on...

func (Command) Name_

func (Command) Name_() string

func (Command) Value

func (c Command) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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