util

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultSocketPath = "/tmp/spire-registration.sock"
)

Variables

This section is empty.

Functions

func NewRegistrationClient

func NewRegistrationClient(socketPath string) (registration.RegistrationClient, error)

func Pluralizer

func Pluralizer(msg string, singular string, plural string, val int) string

Pluralizer concatenates `singular` to `msg` when `val` is one, and `plural` on all other occasions. It is meant to facilitate friendlier CLI output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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