lifecycle

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComposeAppPath         = "/etc/compose/manifests"
	EmbeddedComposeAppPath = "/usr/local/etc/compose/manifests"
)

Variables

This section is empty.

Functions

func NewComposeID added in v0.6.0

func NewComposeID(input string) string

NewComposeID generates a deterministic, lowercase, DNS-compatible ID with a fixed-length hash suffix.

Types

type Action

type Action struct {
	// ID of the application
	ID string
	// Name of the application
	Name string
	// Environment variables to be passed to the manifest handler at runtime
	EnvVars map[string]string
	// Type of the action
	Type ActionType
	// AppType of the application
	AppType v1alpha1.AppType
	// Path to the application
	Path string
	// Embedded is true if the application is embedded in the device
	Embedded bool
}

type ActionHandler

type ActionHandler interface {
	Execute(ctx context.Context, action *Action) error
}

type ActionHandlerType

type ActionHandlerType string
const (
	ActionHandlerCompose ActionHandlerType = "compose"
)

type ActionType

type ActionType string
const (
	ActionAdd    ActionType = "add"
	ActionRemove ActionType = "remove"
	ActionUpdate ActionType = "update"
)

type Compose

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

func NewCompose

func NewCompose(log *log.PrefixLogger, podman *client.Podman) *Compose

func (*Compose) Execute

func (c *Compose) Execute(ctx context.Context, action *Action) error

Jump to

Keyboard shortcuts

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