controller

package
v0.1.0-c02.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 3 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

func Reconcile

func Reconcile(claim Claim, action string, now time.Time) (Status, Receipt, BillingEvent, error)

Types

type BillingEvent

type BillingEvent struct {
	Name           string `json:"name"`
	Meter          string `json:"meter"`
	IdempotencyKey string `json:"idempotencyKey"`
	Subject        string `json:"subject"`
}

type Claim

type Claim struct {
	Name       string
	Namespace  string
	ProjectRef string
	Plan       string
}

type Phase

type Phase string
const (
	PhasePending      Phase = "pending"
	PhaseProvisioning Phase = "provisioning"
	PhaseReady        Phase = "ready"
	PhaseDenied       Phase = "denied"
	PhaseDegraded     Phase = "degraded"
	PhaseRetryable    Phase = "retryable"
	PhaseDeleting     Phase = "deleting"
	PhaseFailed       Phase = "failed"
)

type Receipt

type Receipt struct {
	ID             string    `json:"id"`
	Action         string    `json:"action"`
	ClaimRef       string    `json:"claimRef"`
	IdempotencyKey string    `json:"idempotencyKey"`
	GeneratedAt    time.Time `json:"generatedAt"`
}

type Status

type Status struct {
	Phase       Phase
	EvidenceRef string
	Reason      string
	NextAction  string
}

Jump to

Keyboard shortcuts

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