config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigurationFileContents

func GetConfigurationFileContents() (string, error)

func GetDebugLogLevel added in v0.6.0

func GetDebugLogLevel() bool

func GetDefaultCountry

func GetDefaultCountry() string

func GetDefaultLocality

func GetDefaultLocality() string

func GetDefaultOrganization

func GetDefaultOrganization() string

func GetDefaultOrganizationalUnit

func GetDefaultOrganizationalUnit() string

func GetDefaultProvince

func GetDefaultProvince() string

func GetGraphQLPort added in v0.6.0

func GetGraphQLPort() int

func GetPolicyFile added in v0.6.0

func GetPolicyFile() string

func GetServerTLSHost added in v0.6.0

func GetServerTLSHost() string

func GetServerTLSPort added in v0.6.0

func GetServerTLSPort() int

func GetTLSCertDir added in v0.6.0

func GetTLSCertDir() string

func GetTPPCredentials added in v0.6.0

func GetTPPCredentials() (tppToken, tppURL, tppZone string)

func GetUsePassthrough added in v0.6.0

func GetUsePassthrough() bool

func GetUseSDS added in v0.6.0

func GetUseSDS() bool

func GetUserProvidedCACert added in v0.6.0

func GetUserProvidedCACert() (string, string)

func InitCLIConfiguration

func InitCLIConfiguration()

func SetCSRConfiguration

func SetCSRConfiguration(o string, ou string, c string, p string, l string)

func SetDebugLogLevel added in v0.6.0

func SetDebugLogLevel(configDebugLogging bool)

func SetGraphQLPort added in v0.6.0

func SetGraphQLPort(port int)

func SetPolicyFile added in v0.6.0

func SetPolicyFile(configPolicy string)

func SetServerTLSHost added in v0.6.0

func SetServerTLSHost(v string)

func SetServerTLSPort added in v0.6.0

func SetServerTLSPort(v int)

func SetTLSCertDir added in v0.6.0

func SetTLSCertDir(configTlsCertDir string)

func SetTPPCredentials added in v0.6.0

func SetTPPCredentials(tppToken, tppURL, tppZone string)

func SetUsePassthrough added in v0.6.0

func SetUsePassthrough(v bool)

func SetUseSDS added in v0.6.0

func SetUseSDS(v bool)

func SetUserProvidedCACert added in v0.6.0

func SetUserProvidedCACert(configCACert, configCAKey string)

func WriteConfigFile added in v0.6.0

func WriteConfigFile() error

Types

type Config

type Config struct {
	UseSDS         bool `yaml:"enable-sds"`
	UsePassthrough bool `yaml:"enable-passthrough"`
	GraphQLPort    int  `yaml:"graphql-port"`
	CSR            struct {
		Organization       string `yaml:"organization"`
		OrganizationalUnit string `yaml:"organizationalUnit"`

		Country  string `yaml:"country"`
		Province string `yaml:"province"`
		Locality string `yaml:"locality"`
	} `yaml:"default-csr-values"`
	TPP struct {
		Token string `yaml:"token"`
		URL   string `yaml:"url"`
		Zone  string `yaml:"zone"`
	} `yaml:"tpp"`
	GRPC struct {
		Port           int    `yaml:"port"`
		Host           string `yaml:"host"`
		CertificateDir string `yaml:"tls-certificates"`
	} `yaml:"grpc-server"`
	Policy struct {
		Filename string `yaml:"filename"`
	} `yaml:"policy"`

	IssuingCertificate struct {
		Certificate string `yaml:"certificate"`
		PrivateKey  string `yaml:"private-key"`
	} `yaml:"user-provided-issuing-certificate"`

	Logging struct {
		Debug bool `yaml:"debug"`
	} `yaml:"logging"`
}

Jump to

Keyboard shortcuts

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