Help us shape the future of Go! Take the 2026 Go Developer Survey

kubernetes

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package kubernetes exposes the target-oriented entry point for the narrow Kubernetes Deployment integration.

Index

Constants

View Source
const (
	// MaxPageSize bounds one Kubernetes Deployment request.
	MaxPageSize = legacy.MaxPageSize
	// MaxContinueTokenBytes bounds the opaque Kubernetes pagination token.
	MaxContinueTokenBytes = legacy.MaxContinueTokenBytes
)

Variables

View Source
var (
	// ErrInvalidConfiguration reports an unscoped Kubernetes adapter.
	ErrInvalidConfiguration = legacy.ErrInvalidConfiguration
	// ErrInvalidWorkload reports a malformed Kubernetes Deployment name.
	ErrInvalidWorkload = legacy.ErrInvalidWorkload
	// ErrInvalidPage reports an unbounded Deployment list request.
	ErrInvalidPage = legacy.ErrInvalidPage
	// ErrInvalidResponse reports malformed or cross-namespace Kubernetes state.
	ErrInvalidResponse = legacy.ErrInvalidResponse
	// ErrInvalidTenantDocument is a stable Kubernetes mapping error.
	ErrInvalidTenantDocument = legacy.ErrInvalidTenantDocument
	// ErrInvalidDispatcher reports a missing tenant-to-cluster resolver.
	ErrInvalidDispatcher = legacy.ErrInvalidDispatcher
	// ErrUnsupportedCommand reports a non-scaling command at this boundary.
	ErrUnsupportedCommand = legacy.ErrUnsupportedCommand
	// ErrInvalidResolver reports an empty or malformed tenant mapping.
	ErrInvalidResolver = legacy.ErrInvalidResolver
	// ErrTenantNotConfigured reports a tenant without Kubernetes visibility.
	ErrTenantNotConfigured = legacy.ErrTenantNotConfigured
)

Functions

This section is empty.

Types

type Adapter

type Adapter = legacy.Adapter

Adapter reports Deployment status from one configured namespace.

func New

func New(namespace string, client DeploymentClient) (*Adapter, error)

New creates an adapter scoped to namespace.

type DeploymentClient

type DeploymentClient = legacy.DeploymentClient

DeploymentClient is the deliberately restricted part of a namespace-scoped Kubernetes Deployment client used by the control plane.

type DeploymentFactory

type DeploymentFactory = legacy.DeploymentFactory

DeploymentFactory returns the restricted Deployment client for one namespace.

type Page

type Page = legacy.Page

Page is one bounded page of Deployment status.

type ScaleDispatcher

type ScaleDispatcher = legacy.ScaleDispatcher

ScaleDispatcher sends validated scaling commands to a tenant-scoped Kubernetes adapter.

func NewScaleDispatcher

func NewScaleDispatcher(resolver TenantResolver) (*ScaleDispatcher, error)

NewScaleDispatcher creates a scale-only Kubernetes command dispatcher.

type ScaleResult

type ScaleResult = legacy.ScaleResult

ScaleResult is the Kubernetes acknowledgement of an authorized replica update.

type Scaler

type Scaler = legacy.Scaler

Scaler is the scale-only workload mutation exposed to the dispatcher.

type StaticTenantResolver

type StaticTenantResolver = legacy.StaticTenantResolver

StaticTenantResolver stores an immutable tenant-to-namespace mapping.

func LoadTenantResolver

func LoadTenantResolver(
	reader io.Reader,
	maxBytes int64,
	factory DeploymentFactory,
) (*StaticTenantResolver, error)

LoadTenantResolver builds immutable namespace-scoped adapters from one strict, bounded tenant document.

func NewStaticTenantResolver

func NewStaticTenantResolver(configured map[string]TenantAdapter) (*StaticTenantResolver, error)

NewStaticTenantResolver copies a fixed tenant adapter mapping.

type Status

type Status = legacy.Status

Status is the bounded Deployment state presented by the control plane.

type TenantAdapter

type TenantAdapter = legacy.TenantAdapter

TenantAdapter is the complete bounded Kubernetes surface for one tenant.

type TenantResolver

type TenantResolver = legacy.TenantResolver

TenantResolver maps a tenant to its namespace-scoped Kubernetes adapter.

Jump to

Keyboard shortcuts

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