global

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags = []cli.Flag{
	cli.StringFlag{
		Name:   "type",
		Value:  "client",
		EnvVar: "CERTIFICATE_TYPE",
		Usage:  `Certificate type: "node" or "client"`,
	},
	cli.StringFlag{
		Name:   "user",
		EnvVar: "USER",
		Usage:  "User name for client certificate",
	},
	cli.StringSliceFlag{
		Name:  "host",
		Usage: `"--host=address1 --host=address2" One or more host addresses for the node certificate.`,
	},
	cli.StringFlag{
		Name:   "ca-auth-key",
		EnvVar: "CA_AUTH_KEY",
		Usage:  "Auth key to access the cfssl CA",
	},
	cli.StringFlag{
		Name:   "ca-profile",
		EnvVar: "CA_PROFILE",
		Usage:  "Profile to use when using cfssl CA",
	},
	cli.StringFlag{
		Name:   "ca-address",
		EnvVar: "CA_ADDRESS",
		Usage:  "Address of the cfssl CA",
	},
	cli.StringFlag{
		Name:   "certs-dir",
		Value:  "cockroach-certs",
		EnvVar: "CERTS_DIR",
		Usage:  "Directory where the certificates will be saved",
	},
}
View Source
var RequiredFlags = []string{
	"ca-auth-key",
	"ca-profile",
	"ca-address",
}

Functions

func FetchAndSaveCerts

func FetchAndSaveCerts(c *cli.Context) error

FetchAndSaveCerts is a command that fetches certificates from the CA and saves them to disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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