lifecycle

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 6 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

This section is empty.

Types

type Action

type Action struct {
	// Name of the application
	Name string
	// Environment variables to be passed to the manifest handler at runtime
	EnvVars map[string]string
	// Manifest handler to be used
	Handler ActionHandlerType
	// Manifest action to be executed
	Type ActionType
	// Embedded is true if the application is embedded in the device
	Embedded bool
}

func (*Action) ApplicationPath

func (a *Action) ApplicationPath() (string, error)

ApplicationPath returns the path to the application on the device

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