alloc

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 7 Imported by: ? 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

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