Documentation ¶
Overview ¶
Package common holds code needed by multiple commands.
Index ¶
Constants ¶
View Source
const ( // ACLReplicationTokenName is the name used for the ACL replication policy and // Kubernetes secret. It is consumed in both the server-acl-init and // create-federation-secret commands and so lives in this common package. ACLReplicationTokenName = "acl-replication" // ACLTokenSecretKey is the key that we store the ACL tokens in when we // create Kubernetes secrets. ACLTokenSecretKey = "token" )
Variables ¶
This section is empty.
Functions ¶
func GenerateServerCerts ¶
GenerateServerCerts generates Consul CA and a server certificate and saves them to temp files. It returns file names in this order: CA certificate, server certificate, and server key. Note that it's the responsibility of the caller to remove the temporary files created by this function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.