gateway

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertPool added in v0.2.13

func CertPool(path string) (*x509.CertPool, error)

CertPool returns the system trust store extended with the PEM bundle at path. The system roots are kept rather than replaced: a profile's CA is additional trust, so the same client still reaches ordinary public endpoints — file uploads and downloads go to object storage, not only to the Gateway.

Types

type Clients

type Clients struct {
	HTTPClient *http.Client
	BaseURL    string
}

func NewClients

func NewClients(baseURL, token string, opts Options) (*Clients, error)

func (*Clients) ConnectOpts

func (c *Clients) ConnectOpts() []connect.ClientOption

type Options added in v0.2.13

type Options struct {
	// CAFile is a PEM bundle trusted in addition to the system trust store, so
	// a Gateway served by a private CA is reachable without installing that CA
	// machine-wide.
	CAFile string
}

Options carries the transport settings a profile contributes.

Jump to

Keyboard shortcuts

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