Documentation ¶
Index ¶
- Constants
- type FlagTree
- type HelmValuesFromCobraFlags
- func (ctl *HelmValuesFromCobraFlags) AddCobraFlagsToCommand(cmd *cobra.Command, master bool)
- func (ctl *HelmValuesFromCobraFlags) CheckValuesFromFlags(flagset *pflag.FlagSet) error
- func (ctl *HelmValuesFromCobraFlags) GenerateHelmFlagsFromCobraFlags(flagset *pflag.FlagSet) (map[string]interface{}, error)
- func (ctl *HelmValuesFromCobraFlags) GetArgs() map[string]interface{}
- func (ctl *HelmValuesFromCobraFlags) SetArgs(args map[string]interface{})
- type PostgresSSLMode
- type SMTPDetails
- type SMTPTLSMode
Constants ¶
const ( // EVENTSTORE_PV_SIZE eventstore PV size EVENTSTORE_PV_SIZE = "50Gi" // POSTGRES_PV_SIZE postgres PV size POSTGRES_PV_SIZE = "50Gi" // MONGODB_PV_SIZE mongo DB PV size MONGODB_PV_SIZE = "5Gi" // UPLOAD_SERVER_PV_SIZE upload server PV size UPLOAD_SERVER_PV_SIZE = "10Gi" // DOWNLOAD_SERVER_PV_SIZE download server PV size DOWNLOAD_SERVER_PV_SIZE = "10Gi" // REPORT_STORAGE_PV_SIZE report storage PV size REPORT_STORAGE_PV_SIZE = "10Gi" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagTree ¶
type FlagTree struct { Version string EnvironmentName string FQDN string StorageClass string GCPServiceAccountFilePath string IngressClass string PostgresHost string PostgresPort int PostgresUsername string PostgresPassword string PostgresSize string PostgresSSLMode string PostgresInternal bool SMTPHost string SMTPPort int SMTPUsername string SMTPPassword string SMTPSenderEmail string SMTPTlsMode string SMTPTlsIgnoreInvalidCert bool SMTPTlsTrustedHosts string DownloadServerSize string UploadServerSize string EventstoreSize string MongoDBSize string ReportStorageSize string EnableReporting bool // contains filtered or unexported fields }
FlagTree is a set of fields needed to configure the Polaris Reporting Helm Chart
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, master bool)
AddCobraFlagsToCommand adds flags for the Polaris helm chart to the cmd The flags map to fields in the CRSpecBuilderFromCobraFlags struct. master - Set to true for create and false for update
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
PostgresSSLMode configures the Postgres SSL mode
const ( // PostgresSSLModeDisable denotes disabled postgres SSL mode PostgresSSLModeDisable PostgresSSLMode = "disable" // PostgresSSLModeRequire denotes require postgres SSL mode PostgresSSLModeRequire PostgresSSLMode = "require" )
type SMTPDetails ¶
type SMTPDetails struct { Host string `json:"host"` Port int `json:"port"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` SenderEmail string `json:"sender_email,omitempty"` TLSMode SMTPTLSMode `json:"tlsMode"` TLSCheckServerIdentity bool `json:"tlsCheckServerIdentity"` TLSTrustedHosts string `json:"tlsTrustedHosts"` }
SMTPDetails configures SMTP specifications
type SMTPTLSMode ¶
type SMTPTLSMode string
SMTPTLSMode configures the SMTP TLS mode
const ( // SMTPTLSModeDisable denotes disabled SMTP TLS mode SMTPTLSModeDisable SMTPTLSMode = "disable" // SMTPTLSModeTryStartTLS denotes try-starttls SMTP TLS mode SMTPTLSModeTryStartTLS SMTPTLSMode = "try-starttls" // SMTPTLSModeRequireStartTLS denotes require-starttls SMTP TLS mode SMTPTLSModeRequireStartTLS SMTPTLSMode = "require-starttls" // SMTPTLSModeRequireTLS denotes require-tls SMTP TLS mode SMTPTLSModeRequireTLS SMTPTLSMode = "require-tls" )