Documentation
¶
Overview ¶
Package lifecycle is a generated GoMock package.
Index ¶
- Constants
- func BatchStartTimeFromContext(ctx context.Context) (time.Time, bool)
- func ContextWithBatchStartTime(ctx context.Context, t time.Time) context.Context
- type Action
- type ActionHandler
- type ActionHandlerType
- type ActionSpec
- type ActionType
- type Actions
- type ActionsByType
- type Compose
- type ExecutableResolver
- type HelmHandler
- type HelmSpec
- type MockActionHandler
- type MockActionHandlerMockRecorder
- type MockActionSpec
- type MockActionSpecMockRecorder
- type OSExecutableResolver
- type Quadlet
- type Volume
Constants ¶
const ( ComposeAppPath = "/etc/compose/manifests" EmbeddedComposeAppPath = "/usr/local/etc/compose/manifests" )
const ( QuadletAppPath = "/etc/containers/systemd" EmbeddedQuadletAppPath = "/usr/local/etc/containers/systemd" QuadletTargetPath = "/etc/systemd/system/" QuadletTargetName = "flightctl-quadlet-app.target" )
Variables ¶
This section is empty.
Functions ¶
func BatchStartTimeFromContext ¶ added in v1.0.0
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 v1beta1.AppType
// Path to the application
Path string
// User that owns the app. Blank means the same user as the current process.
User v1beta1.Username
// Embedded is true if the application is embedded in the device
Embedded bool
// Volumes is a list of volume names related to this application
Volumes []Volume
// Spec holds type-specific configuration, discriminated by AppType.
Spec ActionSpec
}
type ActionHandler ¶
type ActionHandlerType ¶
type ActionHandlerType string
const (
ActionHandlerCompose ActionHandlerType = "compose"
)
type ActionSpec ¶
type ActionSpec interface {
// contains filtered or unexported methods
}
ActionSpec is a marker interface for type-specific action configuration. Only spec types defined in this package can implement this interface.
type ActionType ¶
type ActionType string
const ( ActionAdd ActionType = "add" ActionRemove ActionType = "remove" ActionUpdate ActionType = "update" )
type ActionsByType ¶
type Compose ¶
type Compose struct {
// contains filtered or unexported fields
}
func NewCompose ¶
func NewCompose(log *log.PrefixLogger, rwFactory fileio.ReadWriterFactory, podmanFactory client.PodmanFactory) *Compose
type ExecutableResolver ¶
ExecutableResolver resolves the path to an executable binary.
type HelmHandler ¶
type HelmHandler struct {
// contains filtered or unexported fields
}
func NewHelmHandler ¶
func NewHelmHandler(log *log.PrefixLogger, clients client.CLIClients, kubeconfigPath string, resolver ExecutableResolver, rwFactory fileio.ReadWriterFactory) *HelmHandler
type HelmSpec ¶
type HelmSpec struct {
// Namespace is the Kubernetes namespace for the Helm release.
Namespace string
// ValuesFiles is a list of relative paths to values files within the chart.
ValuesFiles []string
// ProviderValuesPath is the absolute path to the provider-generated values file.
// This is set when the application spec contains inline Values.
ProviderValuesPath string
}
HelmSpec contains Helm-specific action configuration.
type MockActionHandler ¶ added in v1.0.0
type MockActionHandler struct {
// contains filtered or unexported fields
}
MockActionHandler is a mock of ActionHandler interface.
func NewMockActionHandler ¶ added in v1.0.0
func NewMockActionHandler(ctrl *gomock.Controller) *MockActionHandler
NewMockActionHandler creates a new mock instance.
func (*MockActionHandler) EXPECT ¶ added in v1.0.0
func (m *MockActionHandler) EXPECT() *MockActionHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockActionHandlerMockRecorder ¶ added in v1.0.0
type MockActionHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockActionHandlerMockRecorder is the mock recorder for MockActionHandler.
type MockActionSpec ¶
type MockActionSpec struct {
// contains filtered or unexported fields
}
MockActionSpec is a mock of ActionSpec interface.
func NewMockActionSpec ¶
func NewMockActionSpec(ctrl *gomock.Controller) *MockActionSpec
NewMockActionSpec creates a new mock instance.
func (*MockActionSpec) EXPECT ¶
func (m *MockActionSpec) EXPECT() *MockActionSpecMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockActionSpecMockRecorder ¶
type MockActionSpecMockRecorder struct {
// contains filtered or unexported fields
}
MockActionSpecMockRecorder is the mock recorder for MockActionSpec.
type OSExecutableResolver ¶
type OSExecutableResolver struct{}
OSExecutableResolver resolves the current process executable using os.Executable().
func (OSExecutableResolver) Resolve ¶
func (r OSExecutableResolver) Resolve() (string, error)
type Quadlet ¶ added in v1.0.0
type Quadlet struct {
// contains filtered or unexported fields
}
func NewQuadlet ¶ added in v1.0.0
func NewQuadlet(log *log.PrefixLogger, rwFactory fileio.ReadWriterFactory, systemdFactory systemd.ManagerFactory, podmanFactory client.PodmanFactory) *Quadlet