certificates

package
v0.0.0-...-55f5c12 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ForceFlagUsage  = "Force overwrite of existing files without prompting"
	NameFlagUsage   = "The name of the CA certificate and key file"
	OutDirFlagUsage = "The output directory"
	DayFlagUsage    = "the validity period of the certificate in days"
	CaKeyFlagUsage  = "the path to the CA key file"
	CaCertFlagUsage = "the path to the CA certificate file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Certificates struct {
		CaCerts []CreateCAArguments   `yaml:"ca-certs"`
		Nodes   []CreateNodeArguments `yaml:"node-certs"`
		Users   []CreateUserArguments `yaml:"user-certs"`
	} `yaml:"certificates"`
}

type CreateCA

type CreateCA struct {
	Ui     cli.Ui
	Config CreateCAArguments
	Flags  *flag.FlagSet
}

func NewCreateCA

func NewCreateCA(ui cli.Ui) *CreateCA

func (*CreateCA) Help

func (c *CreateCA) Help() string

func (*CreateCA) Run

func (c *CreateCA) Run(args []string) int

func (*CreateCA) Synopsis

func (c *CreateCA) Synopsis() string

type CreateCAArguments

type CreateCAArguments struct {
	Days              int    `yaml:"days"`
	OutputDir         string `yaml:"out"`
	CACertificatePath string `yaml:"ca-certificate"`
	CAKeyPath         string `yaml:"ca-key"`
	Name              string `yaml:"name"`
	Force             bool   `yaml:"force"`
}

type CreateCertificateArguments

type CreateCertificateArguments struct {
	ConfigPath string
	Force      bool `yaml:"force"`
}

type CreateCertificates

type CreateCertificates struct {
	Ui     cli.Ui
	Config CreateCertificateArguments
	Flags  *flag.FlagSet
}

func NewCreateCerts

func NewCreateCerts(ui cli.Ui) *CreateCertificates

func (*CreateCertificates) Help

func (c *CreateCertificates) Help() string

func (*CreateCertificates) Run

func (c *CreateCertificates) Run(args []string) int

func (*CreateCertificates) Synopsis

func (c *CreateCertificates) Synopsis() string

type CreateNode

type CreateNode struct {
	Ui     cli.Ui
	Flags  *flag.FlagSet
	Config CreateNodeArguments
}

func NewCreateNode

func NewCreateNode(ui cli.Ui) *CreateNode

func (*CreateNode) Help

func (c *CreateNode) Help() string

func (*CreateNode) Run

func (c *CreateNode) Run(args []string) int

func (*CreateNode) Synopsis

func (c *CreateNode) Synopsis() string

type CreateNodeArguments

type CreateNodeArguments struct {
	CACertificatePath string `yaml:"ca-certificate"`
	CAKeyPath         string `yaml:"ca-key"`
	IPAddresses       string `yaml:"ip-addresses"`
	DNSNames          string `yaml:"dns-names"`
	Days              int    `yaml:"days"`
	OutputDir         string `yaml:"out"`
	CommonName        string `yaml:"common-name"`
	Name              string `yaml:"name"`
	Force             bool   `yaml:"force"`
}

type CreateUser

type CreateUser struct {
	Ui     cli.Ui
	Config CreateUserArguments
	Flags  *flag.FlagSet
}

func NewCreateUser

func NewCreateUser(ui cli.Ui) *CreateUser

func (*CreateUser) Help

func (c *CreateUser) Help() string

func (*CreateUser) Run

func (c *CreateUser) Run(args []string) int

func (*CreateUser) Synopsis

func (c *CreateUser) Synopsis() string

type CreateUserArguments

type CreateUserArguments struct {
	Username          string `yaml:"username"`
	CACertificatePath string `yaml:"ca-certificate"`
	CAKeyPath         string `yaml:"ca-key"`
	Days              int    `yaml:"days"`
	OutputDir         string `yaml:"out"`
	Name              string `yaml:"name"`
	Force             bool   `yaml:"force"`
}

Jump to

Keyboard shortcuts

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