clustercreate

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderTarget = "X-Cluster-Create-Target"
	HeaderID     = "X-Cluster-Create-ID"

	ReservationTTL = 120 * time.Second
)

Variables

This section is empty.

Functions

func CancelReservationBestEffort

func CancelReservationBestEffort(ctx context.Context, svc *service.Service, logger *slog.Logger, sandboxID string)

func CapacityRequestFromCreate

func CapacityRequestFromCreate(req models.CreateSandboxRequest) capacity.Request

func CreateOnSelectedNode

func CreateOnSelectedNode(ctx context.Context, svc *service.Service, logger *slog.Logger, req models.CreateSandboxRequest, reservationID string, opts CreateOptions) (*models.CreateSandboxResponse, error)

func DeletePlacementBestEffort

func DeletePlacementBestEffort(ctx context.Context, svc *service.Service, logger *slog.Logger, sandboxID string)

Types

type CreateOptions

type CreateOptions struct {
	PromoteWithSpec bool
}

type Decision

type Decision struct {
	ReservationID string
}

type ErrorWriter

type ErrorWriter func(w http.ResponseWriter, status int, message string)

type PrepareOptions

type PrepareOptions struct {
	PreferredSandboxID string
}

Jump to

Keyboard shortcuts

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