placement

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package placement binds mecak8s sessions to environments of the Kubernetes execution provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider adapts the execution service to server placement binding.

func NewTemplateProvider

func NewTemplateProvider(client *kubeclient.Client, id, revision string) (*Provider, error)

NewTemplateProvider pins the deployment default to an exact execution revision.

func (*Provider) AcquireRun

func (*Provider) Applies

func (p *Provider) Applies(ref session.EnvironmentRef) bool

func (*Provider) Bind

Bind allocates the environment for the final session binding.

func (*Provider) CancelReferenceIntentDelete

func (p *Provider) CancelReferenceIntentDelete(ctx context.Context, intent server.ReferenceIntent) error

func (*Provider) CommitReferenceIntent

func (p *Provider) CommitReferenceIntent(ctx context.Context, intent server.ReferenceIntent) error

func (*Provider) ConfirmReferenceIntentDelete

func (p *Provider) ConfirmReferenceIntentDelete(ctx context.Context, intent server.ReferenceIntent) error

func (*Provider) EnforcesExecutionCapabilities

func (*Provider) EnforcesExecutionCapabilities(selector server.PlacementSelector) bool

EnforcesExecutionCapabilities reports that every environment Bind allocates is admitted by the trusted service.

func (*Provider) ListExecutionTemplates

func (p *Provider) ListExecutionTemplates(ctx context.Context, principal *session.Principal) ([]server.ExecutionTemplateInfo, string, error)

func (*Provider) ListReferenceIntents

func (p *Provider) ListReferenceIntents(ctx context.Context, limit int) ([]server.ReferenceIntent, error)

func (*Provider) PrepareReferenceDelete

func (*Provider) Reattach

Reattach exactly resolves a persisted remote environment for its binding.

func (*Provider) ReserveSuccessor

func (*Provider) ValidatePlacement

func (p *Provider) ValidatePlacement(ctx context.Context) error

ValidatePlacement performs side-effect-free profile and service preflight.

Jump to

Keyboard shortcuts

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