alloc

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlreadyBound

type AlreadyBound struct {
	ClaimUID k8stypes.UID
	Owner    OwnerIdent
}

func (AlreadyBound) Error

func (ab AlreadyBound) Error() string

type Binder

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

func NewBinder

func NewBinder() *Binder

func (*Binder) Cleanup

func (bnd *Binder) Cleanup(lh logr.Logger, claimUIDs ...k8stypes.UID)

func (*Binder) FindOwner

func (bnd *Binder) FindOwner(lh logr.Logger, claimUID k8stypes.UID) (OwnerIdent, bool)

func (*Binder) Len

func (bnd *Binder) Len() int

func (*Binder) SetOwner

func (bnd *Binder) SetOwner(lh logr.Logger, claimUID k8stypes.UID, podUID, containerName string) error

type OwnerIdent

type OwnerIdent struct {
	PodUID        string
	ContainerName string
}

func (OwnerIdent) Equal

func (oi OwnerIdent) Equal(x OwnerIdent) bool

type Tracker

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

func NewTracker

func NewTracker() *Tracker

func (*Tracker) BindClaim

func (trk *Tracker) BindClaim(lh logr.Logger, claimUID k8stypes.UID, podSandboxID string)

func (*Tracker) CleanupPod

func (trk *Tracker) CleanupPod(lh logr.Logger, podSandboxID string) []k8stypes.UID

func (*Tracker) CountClaims

func (trk *Tracker) CountClaims() int

func (*Tracker) CountPods

func (trk *Tracker) CountPods() int

func (*Tracker) GetAllocationsForClaim

func (trk *Tracker) GetAllocationsForClaim(claimUID k8stypes.UID) (map[string]types.Allocation, bool)

func (*Tracker) RegisterClaim

func (trk *Tracker) RegisterClaim(claimUID k8stypes.UID, claimAllocs map[string]types.Allocation)

func (*Tracker) UnregisterClaim

func (trk *Tracker) UnregisterClaim(claimUID k8stypes.UID)

Jump to

Keyboard shortcuts

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