log

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

View Source
const CAKC001 string = "CAKC001 Error opening the access token file"

ERROR MESSAGES

View Source
const CAKC002 string = "CAKC002 Error deleting access token"
View Source
const CAKC003 string = "CAKC003 Error writing access token, reason: failed to write file"
View Source
const CAKC004 string = "CAKC004 Error writing access token, reason: failed to create directory"
View Source
const CAKC005 string = "CAKC005 Error writing access token, reason: data is empty"
View Source
const CAKC006 string = "CAKC006 Error reading access token, reason: data is empty"
View Source
const CAKC007 string = "CAKC007 At least one of CONJUR_SSL_CERTIFICATE and CONJUR_CERT_FILE must be provided"
View Source
const CAKC008 string = "CAKC008 Namespace or podname can't be empty namespace=%v podname=%v"
View Source
const CAKC009 string = "CAKC009 Environment variable '%s' must be provided"
View Source
const CAKC010 string = "CAKC010 Failed to parse %s. Reason: %s"
View Source
const CAKC011 string = "CAKC011 Client certificate not found at '%s'"
View Source
const CAKC012 string = "CAKC012 Failed to read client certificate file: %s"
View Source
const CAKC013 string = "CAKC013 Failed parsing certificate file '%s'. Reason: %s"
View Source
const CAKC014 string = "CAKC014 Failed to append Conjur CA cert"
View Source
const CAKC015 string = "CAKC015 Login failed"
View Source
const CAKC016 string = "CAKC016 Failed to authenticate"
View Source
const CAKC017 string = "CAKC017 Failed to parse key-pair from pem. Reason: %s"
View Source
const CAKC018 string = "CAKC018 Failed to instantiate Authenticator configuration"
View Source
const CAKC019 string = "CAKC019 Failed to instantiate Authenticator object"
View Source
const CAKC020 string = "CAKC020 Failed to parse authentication response"
View Source
const CAKC021 string = "CAKC021 Failed to read SSL Certificate. Reason: %s"
View Source
const CAKC022 string = "CAKC022 Failed to read body of authenticate HTTP response. Reason: %s"
View Source
const CAKC023 string = "CAKC023 Failed to create new authenticate HTTP request. Reason: %s"
View Source
const CAKC024 string = "CAKC024 Failed to create new login HTTP request. Reason: %s"
View Source
const CAKC025 string = "CAKC025 Failed to decode from PEM. Reason: %s"
View Source
const CAKC026 string = "CAKC026 Failed to decode a DER encoded PKCS7 package. Reason: %s"
View Source
const CAKC027 string = "CAKC027 Failed to send https authenticate request or receive response. Reason: %s"
View Source
const CAKC028 string = "CAKC028 Failed to send https login request or response. Reason: %s"
View Source
const CAKC029 string = "CAKC029 Received invalid response to certificate signing request. Reason: %s"
View Source
const CAKC030 string = "CAKC030 Failed to generate RSA keypair. Reason: %s"
View Source
const CAKC031 string = "CAKC031 Retransmission backoff exhausted"
View Source
const CAKC032 string = "CAKC032 CONJUR_AUTHN_LOGIN %s must start with 'host/'"
View Source
const CAKC033 string = "CAKC033 Timed out after waiting for %d seconds for file to exist: %s"
View Source
const CAKC034 string = "CAKC034 Incorrect value '%s' provided for enabling debug mode. Allowed value: '%s'"
View Source
const CAKC035 string = "CAKC035 Successfully authenticated"
View Source
const CAKC036 string = "CAKC036 Logged in"
View Source
const CAKC037 string = "CAKC037 Logged in. Continuing authentication"
View Source
const CAKC038 string = "CAKC038 Certificate expired. Re-logging in..."
View Source
const CAKC039 string = "CAKC039 Trying to log in to Conjur..."
View Source
const CAKC040 string = "CAKC040 Authenticating as user '%s'"
View Source
const CAKC041 string = "CAKC041 Logging in as user '%s'"
View Source
const CAKC042 string = "CAKC042 Cert expires: %v"
View Source
const CAKC043 string = "CAKC043 Current date: %v"
View Source
const CAKC044 string = "CAKC044 Buffer time:  %v"
View Source
const CAKC045 string = "CAKC045 Login request to: %s"
View Source
const CAKC046 string = "CAKC046 Authn request to: %s"
View Source
const CAKC047 string = "CAKC047 Waiting for %s to re-authenticate"
View Source
const CAKC048 string = "CAKC048 Kubernetes Authenticator Client v%s starting up..."
View Source
const CAKC049 string = "CAKC049 Loaded client certificate successfully from %s"
View Source
const CAKC050 string = "CAKC050 Deleted client certificate from memory"
View Source
const CAKC051 string = "CAKC051 Waiting for file %s to become available..."
View Source
const CAKC052 string = "CAKC052 Debug mode is enabled"
View Source
const CAKC053 string = "CAKC053 Failed to read file %s"
View Source
const CAKC054 string = "CAKC054 Failed to delete file %s"
View Source
const CAKC055 string = "CAKC055 Cert placement failed with the following error:\n%s"
View Source
const CAKC056 string = "CAKC056 File %s does not exist"
View Source
const CAKC057 string = "CAKC057 Removing file %s"
View Source
const CAKC058 string = "CAKC058 Permissions error occured when checking if file exists: %s"
View Source
const CAKC059 string = "CAKC059 Path exists but does not contain regular file: %s"
View Source
const CAKC060 string = "CAKC060 Setting %s given invalid value %s"
View Source
const CAKC061 string = "CAKC061 Failed to validate setting for Authenticator configuration"
View Source
const CAKC062 string = "CAKC062 Required Authenticator setting %s not provided"
View Source
const CAKC063 string = "CAKC063 Unable to find configuration for URL: %s"
View Source
const CAKC064 string = "CAKC064 Unable to find Authenticator for this configuration"
View Source
const CAKC065 string = "CAKC065 File path is invalid %s"
View Source
const CAKC066 string = "CAKC066 Performing authn-jwt"
View Source
const CAKC067 string = "CAKC067 Failed to read JWT from %s"
View Source
const CAKC068 string = "CAKC068 Loading configuration object..."
View Source
const CAKC069 string = "CAKC069 Sending %s request..."
View Source
const CAKC070 string = "CAKC070 Chosen %q configuration"
View Source
const CAKC071 string = "CAKC071 Gathering input settings for configuration..."
View Source
const CAKC072 string = "CAKC072 Successfully gathered input settings"
View Source
const CAKC073 string = "CAKC073 Validating input configuration..."
View Source
const CAKC074 string = "CAKC074 Successfully validated input configuration"
View Source
const CAKC075 string = "CAKC075 Chosen %q flow"
View Source
const CAKC076 string = "CAKC076 Loading JWT from %s..."
View Source
const CAKC077 string = "CAKC077 Successfully loaded JWT"
View Source
const CAKC078 string = "CAKC078 Extracting application identity (host) from configuration..."
View Source
const CAKC079 string = "CAKC079 Extracted application identity (host) %s from configuration"
View Source
const CAKC080 string = "" /* 144-byte string literal not displayed */

Variables

Functions

func Debug added in v0.19.0

func Debug(infoMessage string, args ...interface{})

func EnableDebugMode added in v0.19.0

func EnableDebugMode()

func Error added in v0.19.0

func Error(message string, args ...interface{})

func Info added in v0.19.0

func Info(message string, args ...interface{})

func RecordedError

func RecordedError(errorMessage string, args ...interface{}) error

Prints an error message to the error log and returns a new error with the given message. This method can receive also more arguments (e.g an external error) and they will be appended to the given error message.

For example, we have a local method `someMethod()`. This method handles its own error printing and thus we can consume the error and not append it to the new error message, as follows:

returnVal, err := someMethod()
if err != nil {
	return nil, log.RecordedError("failed to run someMethod")
}

On the other hand, if `someMethod()` is a 3rd party method we want to print also the returned error as it wasn't printed to the error log. So we'll have the following code:

returnVal, err := 3rdParty.someMethod()
if err != nil {
	return nil, log.RecordedError("failed to run someMethod. Reason: %s", err)
}

func Warn added in v0.19.0

func Warn(message string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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