Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWriter ¶
type FileWriter struct {
Conf HTTPSTLSConf
}
FileWriter is a writer for httpstls.json
func (*FileWriter) GenConf ¶
func (f *FileWriter) GenConf(ctx context.Context, cli client.Client, tlsSecretName types.NamespacedName) (string, error)
GenConf will generate the TLS conf and write it out to disk. The name of the file will be returned. The pod that it gets written too is specified by TargetPod.
type HTTPSTLSConf ¶
type HTTPSTLSConf struct { Name string `json:"name"` CipherSuites string `json:"cipher_suites"` Mode int `json:"mode"` // TLS modes. Number is an internal server const (see vertica/Util/TLS.hpp) Key string `json:"key"` // Key is the private key Certificate string `json:"certificate"` // Certificate associated with the private key ChainCerts []string `json:"chain_certs"` CACerts []string `json:"ca_certificates"` }
HTTPSTLSConf is the tls config file contents. The format of this must match the format that the Vertica server understands. Do not add or change fields here without first having an approriate change in the Vertica server.
Click to show internal directories.
Click to hide internal directories.