cert

package
v0.0.0-...-52b58a3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0, BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package cert contains certificate tools for Google API clients. This package is intended to be used with crypto/tls.Config.GetClientCertificate.

The certificates can be used to satisfy Google's Endpoint Validation. See https://cloud.google.com/endpoint-verification/docs/overview

This package is not intended for use by end developers. Use the google.golang.org/api/option package to configure API clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

Source is a function that can be passed into crypto/tls.Config.GetClientCertificate.

func DefaultSource

func DefaultSource() (Source, error)

DefaultSource returns a certificate source that execs the command specified in the file at ~/.secureConnect/context_aware_metadata.json

If that file does not exist, a nil source is returned.

Jump to

Keyboard shortcuts

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