cmd/

directory
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT

Directories

Path Synopsis
cli
Package main is the entry point of the semaphore command line tool.
Package main is the entry point of the semaphore command line tool.
cliapp
Package cliapp wires and runs the semaphore-cli command line.
Package cliapp wires and runs the semaphore-cli command line.
config
Package config implements "semaphore-cli config validate" and "semaphore-cli config print --effective": thin commands over the strict loader of the version 2 bootstrap file (cmd/relayproxy/bootstrap).
Package config implements "semaphore-cli config validate" and "semaphore-cli config print --effective": thin commands over the strict loader of the version 2 bootstrap file (cmd/relayproxy/bootstrap).
evaluate
Package evaluate implements the command that evaluates a feature flag for a given context.
Package evaluate implements the command that evaluates a feature flag for a given context.
evaluate/retrieverconf
Package retrieverconf defines the configuration of the retrievers and their serializable options.
Package retrieverconf defines the configuration of the retrievers and their serializable options.
evaluate/retrieverconf/init
Package init creates the retrievers from their configuration.
Package init creates the retrievers from their configuration.
generate
Package generate implements the command group that generates Semaphore related files.
Package generate implements the command group that generates Semaphore related files.
generate/manifest
Package manifest implements the command that generates a flag manifest from a configuration file.
Package manifest implements the command that generates a flag manifest from a configuration file.
generate/manifest/internal/logcapture
Package logcapture is the slog handler that the manifest generator gives to the library it calls: it keeps the warnings and errors, in order, to replay them into the output of the command.
Package logcapture is the slog handler that the manifest generator gives to the library it calls: it keeps the warnings and errors, in order, to replay them into the output of the command.
generate/manifest/model
Package model defines the flag manifest document structure written by the manifest command.
Package model defines the flag manifest document structure written by the manifest command.
helper
Package helper provides the flag type resolution and output helpers shared by the command line commands.
Package helper provides the flag type resolution and output helpers shared by the command line commands.
linter
Package linter implements the command that lints a Semaphore flag configuration file.
Package linter implements the command that lints a Semaphore flag configuration file.
segment
Package segment is the semaphore-cli segment command group: import, add, remove and stat for the members of a dynamic segment in a Valkey or Redis store.
Package segment is the semaphore-cli segment command group: import, add, remove and stat for the members of a dynamic segment in a Valkey or Redis store.
Package main generates the JSON schema of the relay proxy configuration file.
Package main generates the JSON schema of the relay proxy configuration file.
Package main is the entry point of the relay proxy server.
Package main is the entry point of the relay proxy server.
adaptermetric
Package adaptermetric holds the Prometheus series that read the counters of the adapters: the requests of the S3 clients of the connection factory and the status of the event accelerator.
Package adaptermetric holds the Prometheus series that read the counters of the adapters: the requests of the S3 clients of the connection factory and the status of the event accelerator.
api
Package api serves the relay proxy HTTP API, its OpenAPI document and its server lifecycle.
Package api serves the relay proxy HTTP API, its OpenAPI document and its server lifecycle.
api/middleware
Package middleware holds the HTTP middleware of the relay proxy, as plain http.Handler wrappers.
Package middleware holds the HTTP middleware of the relay proxy, as plain http.Handler wrappers.
api/opentelemetry
Package opentelemetry sets up the OpenTelemetry metrics and tracing of the relay proxy.
Package opentelemetry sets up the OpenTelemetry metrics and tracing of the relay proxy.
bootstrap
Package bootstrap defines the version 2 bootstrap file of the relay proxy: its schema, a strict loader that reports path- and line-addressed errors, the secret references, the explicit environment overrides, the defaults table, the redacted effective print and the JSON Schema.
Package bootstrap defines the version 2 bootstrap file of the relay proxy: its schema, a strict loader that reports path- and line-addressed errors, the secret references, the explicit environment overrides, the defaults table, the redacted effective print and the JSON Schema.
configsync
Package configsync lets the OFREP bulk evaluation answer a client that was notified of a newer configuration than the one the relay has loaded: the relay checks its control plane first, within a bound, and answers with what it then has.
Package configsync lets the OFREP bulk evaluation answer a client that was notified of a newer configuration than the one the relay has loaded: the relay checks its control plane first, within a bound, and answers with what it then has.
corehttp
Package corehttp serves the HTTP API of the relay proxy (the evaluation endpoints, the flag configuration, the flag change, the collection of events and the streams of changes) from a relaycore.Core.
Package corehttp serves the HTTP API of the relay proxy (the evaluation endpoints, the flag configuration, the flag change, the collection of events and the streams of changes) from a relaycore.Core.
events
Package events holds the runtime-level exporters, the event channel and the notifiers of the relay proxy.
Package events holds the runtime-level exporters, the event channel and the notifiers of the relay proxy.
events/kafka
Package kafka implements the SCRAM client used to authenticate against Kafka.
Package kafka implements the SCRAM client used to authenticate against Kafka.
flagdata
Package flagdata is the consumer side of the change source seam (see package flagsource): it reacts to the events of a change source and turns them into generations of flag data for the pipeline that builds and swaps the runtime.
Package flagdata is the consumer side of the change source seam (see package flagsource): it reacts to the events of a change source and turns them into generations of flag data for the pipeline that builds and swaps the runtime.
flagruntime
Package flagruntime holds the immutable runtime of the relay proxy and the reconcile engine that replaces it.
Package flagruntime holds the immutable runtime of the relay proxy and the reconcile engine that replaces it.
flagruntime/keyindex
Package keyindex is the lookup table of API keys: a lookup costs a bounded amount whatever the key a client presents.
Package keyindex is the lookup table of API keys: a lookup costs a bounded amount whatever the key a client presents.
flagsource
Package flagsource is the contract between the side of the relay that knows where flag data lives (a change source) and the side that knows what the flag data means (the flag data consumer, package flagdata).
Package flagsource is the contract between the side of the relay that knows where flag data lives (a change source) and the side that knows what the flag data means (the flag data consumer, package flagdata).
flagsource/objectstore
Package objectstore is the read port of the flag source that polls object stores: the small ObjectStore interface through which the relay reads flag set files and flag files, and the errors and types of its answers.
Package objectstore is the read port of the flag source that polls object stores: the small ObjectStore interface through which the relay reads flag set files and flag files, and the errors and types of its answers.
flagsource/objectstore/azurestore
Package azurestore is the objectstore.ObjectStore on Azure Blob Storage, over the Get Blob request.
Package azurestore is the objectstore.ObjectStore on Azure Blob Storage, over the Get Blob request.
flagsource/objectstore/filestore
Package filestore is the objectstore.ObjectStore and objectstore.Lister on a directory of the local file system (a volume mount, a ConfigMap).
Package filestore is the objectstore.ObjectStore and objectstore.Lister on a directory of the local file system (a volume mount, a ConfigMap).
flagsource/objectstore/gcsstore
Package gcsstore is the objectstore.ObjectStore on Google Cloud Storage, over the JSON API and the media download of one object.
Package gcsstore is the objectstore.ObjectStore on Google Cloud Storage, over the JSON API and the media download of one object.
flagsource/objectstore/httpstore
Package httpstore is the objectstore.ObjectStore on a plain HTTP server (static hosting, a CDN).
Package httpstore is the objectstore.ObjectStore on a plain HTTP server (static hosting, a CDN).
flagsource/objectstore/ratelimit
Package ratelimit caps the requests the relay makes through one connection.
Package ratelimit caps the requests the relay makes through one connection.
flagsource/objectstore/s3store
Package s3store is the objectstore.ObjectStore and objectstore.Lister on the S3 client of a named connection of the connection factory: GetObject for reads, ListObjectsV2 for listings and HeadObject for the description of one key.
Package s3store is the objectstore.ObjectStore and objectstore.Lister on the S3 client of a named connection of the connection factory: GetObject for reads, ListObjectsV2 for listings and HeadObject for the description of one key.
flagsource/objectstore/storekit
Package storekit holds what several object stores share and that names no cloud SDK: the rules of a key, the bounded read of a body, the whole-second time rule of S3, and the rules and the transport of the HTTP and the cloud stores (settings limits, redirect policy, Retry-After, the mapping of a status to a result).
Package storekit holds what several object stores share and that names no cloud SDK: the rules of a key, the bounded read of a body, the whole-second time rule of S3, and the rules and the transport of the HTTP and the cloud stores (settings limits, redirect policy, Retry-After, the mapping of a status to a result).
flagsource/objectstore/storekit/internal/bodyread
Package bodyread reads the body of an object store's answer into one buffer, within the limit of the call.
Package bodyread reads the body of an object store's answer into one buffer, within the limit of the call.
flagsource/objectstore/storetest
Package storetest is the conformance suite of objectstore.ObjectStore: the contract of a store as executable cases.
Package storetest is the conformance suite of objectstore.ObjectStore: the contract of a store as executable cases.
flagsource/polling
Package polling is the change source that polls a store: it lists the places that hold flag set files, reads the objects whose version marker moved, and delivers what it found as flagsource.Event values.
Package polling is the change source that polls a store: it lists the places that hold flag set files, reads the objects whose version marker moved, and delivers what it found as flagsource.Event values.
handler/manifest
Package manifest implements the HTTP handler that returns the flag manifest of a flagset.
Package manifest implements the HTTP handler that returns the flag manifest of a flagset.
handler/ofrep
Package ofrep implements the OFREP evaluation handlers of the relay proxy.
Package ofrep implements the OFREP evaluation handlers of the relay proxy.
handler/semaphore
Package semaphore implements the Semaphore HTTP handlers of the relay proxy.
Package semaphore implements the Semaphore HTTP handlers of the relay proxy.
helper
Package helper provides the request, header and HTTP error helpers of the relay proxy.
Package helper provides the request, header and HTTP error helpers of the relay proxy.
metric
Package metric defines the Prometheus metrics exposed by the relay proxy.
Package metric defines the Prometheus metrics exposed by the relay proxy.
model
Package model defines the request and response models of the relay proxy HTTP API.
Package model defines the request and response models of the relay proxy HTTP API.
modeldocs
Package modeldocs holds the documentation stubs of the relay proxy OpenAPI document.
Package modeldocs holds the documentation stubs of the relay proxy OpenAPI document.
relayapp
Package relayapp wires and runs the relay proxy: the command line, the start, the reloads and the ordered stop.
Package relayapp wires and runs the relay proxy: the command line, the start, the reloads and the ordered stop.
relayapp/internal/cmdline
Package cmdline parses the command line of the relay: the flags that override the bootstrap file, --config, --help and --version.
Package cmdline parses the command line of the relay: the flags that override the bootstrap file, --config, --help and --version.
relaycore
Package relaycore assembles the config v2 relay core from a loaded bootstrap file: the connections, the object store of the control plane, the cache directory, the polling flag source, the source that feeds the reconcile engine, the engine with its holder and evaluator, and the exporters and notifiers of the events package.
Package relaycore assembles the config v2 relay core from a loaded bootstrap file: the connections, the object store of the control plane, the cache directory, the polling flag source, the source that feeds the reconcile engine, the engine with its holder and evaluator, and the exporters and notifiers of the events package.
relaycore/internal/reloadstats
Package reloadstats counts the rounds of the reconcile engine of a relay core by outcome and keeps the last ones.
Package reloadstats counts the rounds of the reconcile engine of a relay core by outcome and keeps the last ones.
relaycore/internal/statewriter
Package statewriter makes the cache directory of a relay core hold what its runtime serves.
Package statewriter makes the cache directory of a relay core hold what its runtime serves.
segmentobs
Package segmentobs observes the resolvers of the dynamic segments for Prometheus.
Package segmentobs observes the resolvers of the dynamic segments for Prometheus.
segmentstore
Package segmentstore tells the relay which kinds of connection of the bootstrap file can serve segments, and in which modes.
Package segmentstore tells the relay which kinds of connection of the bootstrap file can serve segments, and in which modes.
service
Package service manages the flagsets and the feature flag clients used by the relay proxy.
Package service manages the flagsets and the feature flag clients used by the relay proxy.
service/stream
Package stream implements the SSE and WebSocket streams that push flag changes to clients.
Package stream implements the SSE and WebSocket streams that push flag changes to clients.
storebuild
Package storebuild builds the object store of a connection from its bootstrap setting: it resolves the secrets, reads the CA bundle and hands the setting to the store of the connection kind.
Package storebuild builds the object store of a connection from its bootstrap setting: it resolves the secrets, reads the CA bundle and hands the setting to the store of the connection kind.
tlscert
Package tlscert serves the certificate of a TLS listener and reloads it when its files change, without a restart and without touching the connections that are open.
Package tlscert serves the certificate of a TLS listener and reloads it when its files change, without a restart and without touching the connections that are open.

Jump to

Keyboard shortcuts

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