util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package util provides helper functions for the client.

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigUnavailable = errors.New("Config is unavailable")

ErrConfigUnavailable is a sentinel error that indicates ECP config is unavailable, possibly due to entire config missing or missing binary path.

Functions

func GetConfigFilePathFromEnv added in v0.3.0

func GetConfigFilePathFromEnv() (path string)

GetConfigFilePathFromEnv returns the path associated with environment variable GOOGLE_API_CERTIFICATE_CONFIG

func GetDefaultConfigFilePath

func GetDefaultConfigFilePath() (path string)

GetDefaultConfigFilePath returns the default path of the enterprise certificate config file created by gCloud.

func LoadSignerBinaryPath

func LoadSignerBinaryPath(configFilePath string) (path string, err error)

LoadSignerBinaryPath retrieves the path of the signer binary from the config file.

Types

type EnterpriseCertificateConfig

type EnterpriseCertificateConfig struct {
	Libs Libs `json:"libs"`
}

EnterpriseCertificateConfig contains parameters for initializing signer.

type Libs

type Libs struct {
	ECP string `json:"ecp"`
}

Libs specifies the locations of helper libraries.

Jump to

Keyboard shortcuts

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