polarisreporting

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFlagTree = FlagTree{

	Version: globals.PolarisReportingVersion,

	IngressClass: "nginx",

	ReportStorageSize: "5Gi",
	EventstoreSize:    "50Gi",

	SMTPTlsIgnoreInvalidCert: "false",

	PostgresInternal: "false",
	PostgresPort:     5432,
	PostgresSSLMode:  "require",
	PostgresSize:     "50Gi",
}

DefaultFlagTree ... [Dev Note]: These should match the Helm Chart's Values.yaml

Functions

This section is empty.

Types

type FlagTree

type FlagTree struct {
	Version                   string
	FQDN                      string
	GCPServiceAccountFilePath string
	IngressClass              string
	StorageClass              string
	ReportStorageSize         string
	EventstoreSize            string
	PostgresInternal          string
	PostgresHost              string
	PostgresPort              int
	PostgresUsername          string
	PostgresPassword          string
	PostgresSize              string
	PostgresSSLMode           string
	SMTPHost                  string
	SMTPPort                  int
	SMTPUsername              string
	SMTPPassword              string
	SMTPSenderEmail           string
	SMTPTlsMode               string
	SMTPTlsIgnoreInvalidCert  string
	SMTPTlsTrustedHosts       string
}

FlagTree is a set of fields needed to configure the Polaris Reporting Helm Chart

func GetDefaultFlagTree added in v1.1.0

func GetDefaultFlagTree() *FlagTree

GetDefaultFlagTree ...

type HelmValuesFromCobraFlags

type HelmValuesFromCobraFlags struct {
	// contains filtered or unexported fields
}

HelmValuesFromCobraFlags is a type for converting synopsysctl flags to Helm Chart fields and values args: map of helm chart field to value

func NewHelmValuesFromCobraFlags

func NewHelmValuesFromCobraFlags() *HelmValuesFromCobraFlags

NewHelmValuesFromCobraFlags returns an initialized HelmValuesFromCobraFlags

func (*HelmValuesFromCobraFlags) AddCobraFlagsToCommand

func (ctl *HelmValuesFromCobraFlags) AddCobraFlagsToCommand(cmd *cobra.Command, isCreateCmd bool)

AddCobraFlagsToCommand adds flags for the Polaris-Reporting helm chart to the cmd

func (*HelmValuesFromCobraFlags) CheckValuesFromFlags

func (ctl *HelmValuesFromCobraFlags) CheckValuesFromFlags(flagset *pflag.FlagSet) error

CheckValuesFromFlags returns an error if a value set by a flag is invalid

func (*HelmValuesFromCobraFlags) GenerateHelmFlagsFromCobraFlags

func (ctl *HelmValuesFromCobraFlags) GenerateHelmFlagsFromCobraFlags(flagset *pflag.FlagSet) (map[string]interface{}, error)

GenerateHelmFlagsFromCobraFlags checks each flag in synopsysctl and updates the map to contain the corresponding helm chart field and value

func (*HelmValuesFromCobraFlags) GetArgs

func (ctl *HelmValuesFromCobraFlags) GetArgs() map[string]interface{}

GetArgs returns the map of helm chart fields to values

func (*HelmValuesFromCobraFlags) SetArgs

func (ctl *HelmValuesFromCobraFlags) SetArgs(args map[string]interface{})

SetArgs set the map to values

type PostgresSSLMode

type PostgresSSLMode string
const (
	PostgresSSLModeDisable PostgresSSLMode = "disable"
	//PostgresSSLModeAllow   PostgresSSLMode = "allow"
	// Not supported???
	//PostgresSSLModePrefer  PostgresSSLMode = "prefer"
	PostgresSSLModeRequire PostgresSSLMode = "require"
)

type SMTPTLSMode

type SMTPTLSMode string
const (
	SMTPTLSModeDisable         SMTPTLSMode = "disable"
	SMTPTLSModeTryStartTLS     SMTPTLSMode = "try-starttls"
	SMTPTLSModeRequireStartTLS SMTPTLSMode = "require-starttls"
	SMTPTLSModeRequireTLS      SMTPTLSMode = "require-tls"
)

Jump to

Keyboard shortcuts

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