core

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CommonControlName = "common"

Variables

This section is empty.

Functions

func NewSandboxControl

func NewSandboxControl(c client.Client) map[string]SandboxControl

Types

type EnsureFuncArgs

type EnsureFuncArgs struct {
	Pod       *corev1.Pod
	Box       *agentsv1alpha1.Sandbox
	NewStatus *agentsv1alpha1.SandboxStatus
}

type SandboxControl

type SandboxControl interface {
	// EnsureSandboxPhasePending ensure sandbox status phase = Pending
	EnsureSandboxPhasePending(ctx context.Context, args EnsureFuncArgs) error

	// EnsureSandboxPhaseRunning ensure sandbox status phase = Running
	EnsureSandboxPhaseRunning(ctx context.Context, args EnsureFuncArgs) error

	// EnsureSandboxPhasePaused ensure sandbox status phase = Paused
	EnsureSandboxPhasePaused(ctx context.Context, args EnsureFuncArgs) error

	// EnsureSandboxPhaseResuming ensure sandbox status phase = Resume
	EnsureSandboxPhaseResuming(ctx context.Context, args EnsureFuncArgs) error

	// EnsureSandboxPhaseTerminating ensure sandbox status phase = Terminating
	EnsureSandboxPhaseTerminating(ctx context.Context, args EnsureFuncArgs) error
}

Jump to

Keyboard shortcuts

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