httpconf

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

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.

type Writer

type Writer interface {
	// GenConf will generate the https TLS config file.  It will return the name
	// of the file and any errors that occurred.
	GenConf(ctx context.Context, cli client.Client, tlsSecretName types.NamespacedName) (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳