Documentation
¶
Overview ¶
Package factory configures OCI state archives from environment configuration.
Index ¶
Constants ¶
View Source
const ( // BackendEnvVar accepts "oci" or an unset value. BackendEnvVar = "RADIUS_STATE_BACKEND" // ArchivePlainHTTPEnvVar enables HTTP for a local OCI registry. ArchivePlainHTTPEnvVar = "RADIUS_ARCHIVE_PLAIN_HTTP" // StateRegistryEnvVar configures the OCI repository used by rad startup and shutdown. StateRegistryEnvVar = "RADIUS_STATE_REGISTRY" // GraphRegistryEnvVar configures the OCI repository used by modeled graph output. GraphRegistryEnvVar = "RADIUS_GRAPH_REGISTRY" )
Variables ¶
This section is empty.
Functions ¶
func NewGraphArchive ¶
func NewGraphArchive(registry string) statearchive.Archive
NewGraphArchive returns the OCI archive for durable modeled graph output. Configuration errors are deferred until Archive.Open so local graph output and unrelated commands do not require a registry.
func NewStateArchive ¶
func NewStateArchive(registry string) statearchive.Archive
NewStateArchive returns the OCI archive for rad startup and rad shutdown. Configuration errors are deferred until Archive.Open.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.