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 ¶
type CreateCAArguments ¶
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
Click to show internal directories.
Click to hide internal directories.