grpcconn

package
v1.95.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
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.

Variables

This section is empty.

Functions

func New

func New(uri, authToken string, opt ...Option) (*grpc.ClientConn, error)

Simple wrapper around grpc.Dial that returns a grpc.ClientConn It sets up the connection with the correct credentials headers

Types

type Option

type Option func(*newOptionalArg)

func WithCAContent added in v1.76.0

func WithCAContent(content string) Option

WithCAContent sets the CA certificate content (PEM format or base64-encoded)

func WithCAFile

func WithCAFile(caFilePath string) Option

func WithCLIVersion added in v1.95.2

func WithCLIVersion(version string) Option

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 WithInsecure(insecure bool) Option

func WithOrgName

func WithOrgName(orgName string) Option

Jump to

Keyboard shortcuts

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