setupclient

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: Apache-2.0 Imports: 10 Imported by: 24

Documentation

Overview

Package setupclient assists in setting up TLS credentials for a client.

Package setupclient provides convenience functions for setting up a client (tool) with TLS credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertDirectory

func GetCertDirectory() string

GetCertDirectory returns the directory containing the client certificates.

func SetupTls

func SetupTls(ignoreMissingCerts bool) error

SetupTls loads zero or more client certificates from files and registers them with the lib/srpc package. The following command-line flags are registered with the standard flag package:

-certDirectory: Name of directory containing user SSL certificates

func SetupTlsWithParams added in v0.13.0

func SetupTlsWithParams(params Params) error

SetupTlsWithParsms loads zero or more client certificates from files and registers them with the lib/srpc package. The following command-line flags are registered with the standard flag package:

-certDirectory: Name of directory containing user SSL certificates

Types

type Params added in v0.13.0

type Params struct {
	IgnoreMissingCerts bool // true: ignore if certs missing.
	Logger             log.DebugLogger
}

Jump to

Keyboard shortcuts

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