Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ocfp
command
Package main is the entry point for the OCFP CLI.
|
Package main is the entry point for the OCFP CLI. |
|
internal
|
|
|
artifacts
Package artifacts orchestrates the ocfp-artifacts VM (RustFS S3 blobstore).
|
Package artifacts orchestrates the ocfp-artifacts VM (RustFS S3 blobstore). |
|
bastion
Package bastion orchestrates bastion host initialization and provisioning.
|
Package bastion orchestrates bastion host initialization and provisioning. |
|
bastion/deployments
Package deployments resolves deployment modes and paths for bastion provisioning.
|
Package deployments resolves deployment modes and paths for bastion provisioning. |
|
bastion/providers
Package providers implements cloud provider-specific bastion initialization.
|
Package providers implements cloud provider-specific bastion initialization. |
|
bastion/provision
Package provision handles bastion provisioning script generation and configuration.
|
Package provision handles bastion provisioning script generation and configuration. |
|
bastion/ssh
Package ssh provides SSH client operations for bastion host communication.
|
Package ssh provides SSH client operations for bastion host communication. |
|
bastion/test
Package test provides test helpers and mock implementations for bastion tests.
|
Package test provides test helpers and mock implementations for bastion tests. |
|
blocinv
Package blocinv builds the inventory of blocs the CLI knows about.
|
Package blocinv builds the inventory of blocs the CLI knows about. |
|
bootstrap
Package bootstrap handles infrastructure bootstrapping operations for OCFP environments.
|
Package bootstrap handles infrastructure bootstrapping operations for OCFP environments. |
|
cli
Package cli implements the root command and subcommand registration for the OCFP CLI.
|
Package cli implements the root command and subcommand registration for the OCFP CLI. |
|
commands
Package commands implements the CLI command handlers for OCFP operations.
|
Package commands implements the CLI command handlers for OCFP operations. |
|
config
Package config handles OCFP CLI configuration file loading, validation, and bloc management.
|
Package config handles OCFP CLI configuration file loading, validation, and bloc management. |
|
cpi
Package cpi provides the cloud provider interface abstraction layer.
|
Package cpi provides the cloud provider interface abstraction layer. |
|
cpi/aws
Package aws implements the CPI provider for Amazon Web Services.
|
Package aws implements the CPI provider for Amazon Web Services. |
|
cpi/azure
Package azure implements the CPI provider for Microsoft Azure.
|
Package azure implements the CPI provider for Microsoft Azure. |
|
cpi/gcp
Package gcp implements the CPI provider for Google Cloud Platform.
|
Package gcp implements the CPI provider for Google Cloud Platform. |
|
cpi/ownedvm
Package ownedvm finds a VM by name among those that carry a bloc's ownership tags, whichever provider holds it.
|
Package ownedvm finds a VM by name among those that carry a bloc's ownership tags, whichever provider holds it. |
|
cpi/pve
Package pve implements the CPI provider for Proxmox Virtual Environment.
|
Package pve implements the CPI provider for Proxmox Virtual Environment. |
|
cpi/stackit
Package stackit implements the CPI provider for STACKIT cloud.
|
Package stackit implements the CPI provider for STACKIT cloud. |
|
exec
Package exec provides subprocess helpers that keep secrets out of argv.
|
Package exec provides subprocess helpers that keep secrets out of argv. |
|
jobexec
Package jobexec runs jobs on a bastion for the instance that owns the bloc.
|
Package jobexec runs jobs on a bastion for the instance that owns the bloc. |
|
keyfile
Package keyfile reads, writes, and protects the key files of an inception vault: the root token in root.key, the unseal key, and the copy of the root token that safe holds for the bloc's own target.
|
Package keyfile reads, writes, and protects the key files of an inception vault: the root token in root.key, the unseal key, and the copy of the root token that safe holds for the bloc's own target. |
|
knownhostsguard
Package knownhostsguard fails a test run that changes the developer's own known_hosts file.
|
Package knownhostsguard fails a test run that changes the developer's own known_hosts file. |
|
logger
Package logger provides structured file-based logging for the OCFP CLI using zap.
|
Package logger provides structured file-based logging for the OCFP CLI using zap. |
|
netlayout
Package netlayout defines the reserved-IP layout strategy abstraction shared by Layer A (bootstrap subnet carving) and Layer B (vault reserved-ips population).
|
Package netlayout defines the reserved-IP layout strategy abstraction shared by Layer A (bootstrap subnet carving) and Layer B (vault reserved-ips population). |
|
output
Package output provides a multi-mode output rendering system for CLI operations.
|
Package output provides a multi-mode output rendering system for CLI operations. |
|
ownerrecord
Package ownerrecord defines the owner record, a controller lock that names the one managing system allowed to act on a bloc, and its signed form.
|
Package ownerrecord defines the owner record, a controller lock that names the one managing system allowed to act on a bloc, and its signed form. |
|
ownerrecord/ownerrecordtest
Package ownerrecordtest holds golden signed owner records for tests and the published test key that signs them.
|
Package ownerrecordtest holds golden signed owner records for tests and the published test key that signs them. |
|
precompile
Package precompile populates the artifacts blobstore with compiled BOSH release tarballs and emits ops files that pin deployment releases to those tarballs, so create-env and CF deploys skip source compilation.
|
Package precompile populates the artifacts blobstore with compiled BOSH release tarballs and emits ops files that pin deployment releases to those tarballs, so create-env and CF deploys skip source compilation. |
|
progress
Package progress writes and reads the progress stream that a long-running ocfp command produces, one JSON object per line.
|
Package progress writes and reads the progress stream that a long-running ocfp command produces, one JSON object per line. |
|
progress/progresstest
Package progresstest holds golden progress streams for tests.
|
Package progresstest holds golden progress streams for tests. |
|
providers
Package providers defines interfaces and base types for cloud provider vault operations.
|
Package providers defines interfaces and base types for cloud provider vault operations. |
|
pve/capacity
Package capacity resolves PVE cloud-config capacity values (workers, cf_max_in_flight) using a three-level priority chain per Decision D1:
|
Package capacity resolves PVE cloud-config capacity values (workers, cf_max_in_flight) using a three-level priority chain per Decision D1: |
|
pve/netvalidate
Package netvalidate detects mismatch between a BOSH director network CIDR and a CF cloud-config CIDR.
|
Package netvalidate detects mismatch between a BOSH director network CIDR and a CF cloud-config CIDR. |
|
pve/opsfiles
Package opsfiles embeds PVE-specific BOSH ops files and writes them to the bastion deployments ops directory during `ocfp init pve`.
|
Package opsfiles embeds PVE-specific BOSH ops files and writes them to the bastion deployments ops directory during `ocfp init pve`. |
|
pve/probes
Package probes provides a pre-deploy probe framework for PVE BOSH director environments.
|
Package probes provides a pre-deploy probe framework for PVE BOSH director environments. |
|
pve/stemcell
Package stemcell provides idempotent BOSH stemcell upload helpers for PVE environments.
|
Package stemcell provides idempotent BOSH stemcell upload helpers for PVE environments. |
|
pve/verify
Package verify provides out-of-band PVE REST API predicates independent of the CPI RPC channel.
|
Package verify provides out-of-band PVE REST API predicates independent of the CPI RPC channel. |
|
recycle
Package recycle replaces a VM's operating system while carrying its persistent data disk across to the replacement.
|
Package recycle replaces a VM's operating system while carrying its persistent data disk across to the replacement. |
|
reservedip
Package reservedip computes per-tier reserved IP addresses for a subnet from its CIDR plus a static per-envType assignment table.
|
Package reservedip computes per-tier reserved IP addresses for a subnet from its CIDR plus a static per-envType assignment table. |
|
safedir
Package safedir checks that no other user can change a path, so that a file under it can be trusted for what it says.
|
Package safedir checks that no other user can change a path, so that a file under it can be trusted for what it says. |
|
security
Package security provides path validation, input sanitization, and shell metacharacter detection.
|
Package security provides path validation, input sanitization, and shell metacharacter detection. |
|
state
Package state manages OCFP bloc state persistence, backup, reconciliation, and resource tracking.
|
Package state manages OCFP bloc state persistence, backup, reconciliation, and resource tracking. |
|
strictjson
Package strictjson decodes a JSON object only when every reader would read it the same way.
|
Package strictjson decodes a JSON object only when every reader would read it the same way. |
|
testenv
Package testenv gives a test binary a home of its own.
|
Package testenv gives a test binary a home of its own. |
|
ui
Package ui provides terminal user interface components for the OCFP CLI.
|
Package ui provides terminal user interface components for the OCFP CLI. |
|
vault
Package vault provides Vault integration for secret management, initialization, migration, and cloud provider-specific vault configuration operations.
|
Package vault provides Vault integration for secret management, initialization, migration, and cloud provider-specific vault configuration operations. |
|
vaultboot
Package vaultboot renders the systemd unit that brings a bloc's inception vault back when a bastion boots, and names the per-bloc instance of it.
|
Package vaultboot renders the systemd unit that brings a bloc's inception vault back when a bastion boots, and names the per-bloc instance of it. |
|
version
Package version provides build and version information for the OCFP CLI.
|
Package version provides build and version information for the OCFP CLI. |
|
writeguard
Package writeguard stops a test process from writing under the developer's real ocfp directories.
|
Package writeguard stops a test process from writing under the developer's real ocfp directories. |
|
Package scripts embeds the provisioning scripts into the ocfp binary so an installed binary works from any directory, without a copy of the source tree.
|
Package scripts embeds the provisioning scripts into the ocfp binary so an installed binary works from any directory, without a copy of the source tree. |
|
namecheck
command
Command namecheck scans text for client terms held outside the repository.
|
Command namecheck scans text for client terms held outside the repository. |
|
tests
|
|
|
integration/cfgloader
Package cfgloader reads tests/integration/config.yml, validates required keys per-tier, resolves secrets via an injected BoshInt function, and synthesizes a CPI JSON config map.
|
Package cfgloader reads tests/integration/config.yml, validates required keys per-tier, resolves secrets via an injected BoshInt function, and synthesizes a CPI JSON config map. |
|
integration/cleanup
Package cleanup provides ResourceTracker for best-effort reverse-order teardown of CPI-managed resources created during integration test runs.
|
Package cleanup provides ResourceTracker for best-effort reverse-order teardown of CPI-managed resources created during integration test runs. |
|
integration/cpirpc
Package cpirpc provides a Go client for the BOSH CPI JSON-RPC protocol.
|
Package cpirpc provides a Go client for the BOSH CPI JSON-RPC protocol. |
Click to show internal directories.
Click to hide internal directories.