useragent

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 5 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluginString

func PluginString(env *logical.PluginEnvironment, pluginName string, comments ...string) string

PluginString is usable by plugins to return a user-agent string reflecting the running Vault version and an optional plugin name.

e.g. Vault/0.10.4 (+https://www.vaultproject.io/; azure-auth; go1.10.1)

Given comments will be appended to the semicolon-delimited comment section.

e.g. Vault/0.10.4 (+https://www.vaultproject.io/; azure-auth; go1.10.1; comment-0; comment-1)

Returns an empty string if the given env is nil.

func String

func String(comments ...string) string

String returns the consistent user-agent string for Vault.

e.g. Vault/0.10.4 (+https://www.vaultproject.io/; go1.10.1)

Given comments will be appended to the semicolon-delimited comment section.

e.g. Vault/0.10.4 (+https://www.vaultproject.io/; go1.10.1; comment-0; comment-1)

Types

This section is empty.

Jump to

Keyboard shortcuts

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