Documentation
¶
Index ¶
Constants ¶
const CLIVersionHeader = "Chainloop-Cli-Version"
CLIVersionHeader is the request header key the CLI uses to advertise its version (and edition flavor) on every request to the Control Plane and CAS. Both gRPC and HTTP treat header keys as case-insensitive, so the same canonical name is reused when the Control Plane forwards the value to downstream policy providers over HTTP.
const DefaultMaxRecvMsgSize = 32 * 1024 * 1024
DefaultMaxRecvMsgSize is the client-side cap applied to incoming unary messages when no override is supplied. It sits above gRPC's 4 MiB built-in default so large responses (e.g. `workflow run describe` with many materials/policies) aren't rejected, while still bounding client memory.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*newOptionalArg)
func WithCAContent ¶ added in v1.76.0
WithCAContent sets the CA certificate content (PEM format or base64-encoded)
func WithCAFile ¶
func WithCLIVersion ¶ added in v1.95.2
WithCLIVersion attaches the given CLI version (e.g. "v1.94.2-oss") to every outgoing request as the chainloop-cli-version header.
func WithInsecure ¶
func WithMaxRecvMsgSize ¶ added in v1.99.1
WithMaxRecvMsgSize overrides the client-side cap on incoming unary message size. Values <= 0 fall back to DefaultMaxRecvMsgSize.