internal/

directory
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0

Directories

Path Synopsis
admin
cmd
Package cmd implements the CLI commands for nstance-admin.
Package cmd implements the CLI commands for nstance-admin.
server
Package server provides the HTTP API server for nstance-admin.
Package server provides the HTTP API server for nstance-admin.
service
Package service provides the core business logic for nstance-admin operations.
Package service provides the core business logic for nstance-admin operations.
agent
cmd
Package cmd implements the nstance-agent command entry point and lifecycle management.
Package cmd implements the nstance-agent command entry point and lifecycle management.
config
Package config provides configuration loading and validation for the nstance-agent.
Package config provides configuration loading and validation for the nstance-agent.
keygen
Package keygen implements key generation request handling for the nstance-agent.
Package keygen implements key generation request handling for the nstance-agent.
receiver
Package receiver handles secure file receicing and validation for the nstance-agent.
Package receiver handles secure file receicing and validation for the nstance-agent.
Package buildvars provides build-time information such as version, commit hash, and date.
Package buildvars provides build-time information such as version, commit hash, and date.
Package files provides utilities for handling and validating files like PEM, JWT, etc.
Package files provides utilities for handling and validating files like PEM, JWT, etc.
Package identifiers provides validation helpers for Nstance identifier formats.
Package identifiers provides validation helpers for Nstance identifier formats.
Package identity provides agent identity management and certificate generation utilities.
Package identity provides agent identity management and certificate generation utilities.
operator
config
Package config provides configuration loading for the nstance-operator from Kubernetes secrets and environment.
Package config provides configuration loading for the nstance-operator from Kubernetes secrets and environment.
connection
Package connection manages persistent gRPC connections to nstance-server zone shards.
Package connection manages persistent gRPC connections to nstance-server zone shards.
controller
Package controller implements Kubernetes controllers for NstanceCluster, NstanceMachine, NstanceMachinePool, and on-demand Pods.
Package controller implements Kubernetes controllers for NstanceCluster, NstanceMachine, NstanceMachinePool, and on-demand Pods.
drain
Package drain provides graceful node draining and workload eviction for the nstance-operator.
Package drain provides graceful node draining and workload eviction for the nstance-operator.
leader
Package leader manages operator runtime orchestration including registration, connections, state sync, and node draining.
Package leader manages operator runtime orchestration including registration, connections, state sync, and node draining.
node
Package node provides utilities for resolving cloud provider instance IDs to Kubernetes Nodes.
Package node provides utilities for resolving cloud provider instance IDs to Kubernetes Nodes.
sync
Package sync provides synchronization between Kubernetes CAPI and Nstance* resources and each nstance-server's groups/instances.
Package sync provides synchronization between Kubernetes CAPI and Nstance* resources and each nstance-server's groups/instances.
webhooks
Package webhooks provides validating admission webhooks for Nstance CRDs.
Package webhooks provides validating admission webhooks for Nstance CRDs.
Package proto contains generated Protocol Buffer types for nstance gRPC services.
Package proto contains generated Protocol Buffer types for nstance gRPC services.
Package renewal provides operator client certificate renewal logic for long-running processes.
Package renewal provides operator client certificate renewal logic for long-running processes.
server
api
Package api provides the main gRPC server and shared authentication logic.
Package api provides the main gRPC server and shared authentication logic.
api/agent
Package agent provides the Agent gRPC service implementation.
Package agent provides the Agent gRPC service implementation.
api/operator
Package operator provides the Operator gRPC service implementation.
Package operator provides the Operator gRPC service implementation.
api/registration
Package registration provides the Registration gRPC service implementation.
Package registration provides the Registration gRPC service implementation.
cluster
Package cluster provides cluster-level coordination including leader election.
Package cluster provides cluster-level coordination including leader election.
cmd
Package cmd implements the nstance-server command entry point and lifecycle management.
Package cmd implements the nstance-server command entry point and lifecycle management.
config
Package config provides configuration loading and validation for the nstance-server.
Package config provides configuration loading and validation for the nstance-server.
election
Package election provides a unified manager for cluster and shard leader elections, abstracting the s3lect library and serving both election health endpoints from a single HTTPS server.
Package election provides a unified manager for cluster and shard leader elections, abstracting the s3lect library and serving both election health endpoints from a single HTTPS server.
filegen
Package filegen generates required certificates and keys for instances.
Package filegen generates required certificates and keys for instances.
gc
Package gc provides periodic garbage collection and maintenance tasks for nstance instances.
Package gc provides periodic garbage collection and maintenance tasks for nstance instances.
health
Package health provides HTTP health check endpoints for ASG and load balancer integration.
Package health provides HTTP health check endpoints for ASG and load balancer integration.
images
Package images provides periodic image resolution and caching across infrastructure providers.
Package images provides periodic image resolution and caching across infrastructure providers.
infra
Package infra provides infrastructure provider abstraction and factory.
Package infra provides infrastructure provider abstraction and factory.
infra/aws
Package aws provides AWS EC2 and load balancer implementation of the infrastructure provider interface.
Package aws provides AWS EC2 and load balancer implementation of the infrastructure provider interface.
infra/gcp
Package gcp provides Google Cloud Compute Engine implementation of the infrastructure provider interface.
Package gcp provides Google Cloud Compute Engine implementation of the infrastructure provider interface.
infra/mock
Package mock provides a test mock implementation of the infrastructure provider interface.
Package mock provides a test mock implementation of the infrastructure provider interface.
infra/provider
Package provider defines the infrastructure provider interface for instance and load balancer operations.
Package provider defines the infrastructure provider interface for instance and load balancer operations.
infra/proxmox
Package proxmox implements the Nstance provider interface for Proxmox VE.
Package proxmox implements the Nstance provider interface for Proxmox VE.
infra/tmux
Package tmux provides local development implementation of the infrastructure provider interface using tmux.
Package tmux provides local development implementation of the infrastructure provider interface using tmux.
instances
Package instances orchestrates instance lifecycle: generating IDs, registration nonce JWTs, and userdata, then delegating VM creation to the infra package.
Package instances orchestrates instance lifecycle: generating IDs, registration nonce JWTs, and userdata, then delegating VM creation to the infra package.
keys
Package keys provides cryptographic key parsing and handling utilities.
Package keys provides cryptographic key parsing and handling utilities.
localdb
Package localdb provides database models and operations for local nstance-server state.
Package localdb provides database models and operations for local nstance-server state.
pki
Package pki provides certificate and key generation for instance PKI.
Package pki provides certificate and key generation for instance PKI.
reconciler
Package reconciler provides infrastructure state reconciliation driven by event queue processing.
Package reconciler provides infrastructure state reconciliation driven by event queue processing.
secrets
Package secrets provides encrypted secret storage using pluggable backends.
Package secrets provides encrypted secret storage using pluggable backends.
storage
Package storage provides an abstraction for object storage operations.
Package storage provides an abstraction for object storage operations.

Jump to

Keyboard shortcuts

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