configuration

package
v0.32.15 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptFunc

func AdaptFunc(
	monitor mntr.Monitor,
	namespace string,
	labels map[string]string,
	desired *Configuration,
	cmName string,
	certPath string,
	secretName string,
	secretPath string,
	consoleCMName string,
	secretVarsName string,
	secretPasswordName string,
	users map[string]string,
	getClientID func() string,
) (
	zitadel.QueryFunc,
	zitadel.DestroyFunc,
	zitadel.EnsureFunc,
	func(k8sClient *kubernetes.Client, currentDB coredb.DatabaseCurrent, currentNW corenw.NetworkingCurrent) map[string]string,
	error,
)

Types

type Cache

type Cache struct {
	MaxAge            string `yaml:"maxAge,omitempty"`
	SharedMaxAge      string `yaml:"sharedMaxAge,omitempty"`
	ShortMaxAge       string `yaml:"shortMaxAge,omitempty"`
	ShortSharedMaxAge string `yaml:"shortSharedMaxAge,omitempty"`
}

type Configuration

type Configuration struct {
	Tracing       *Tracing       `yaml:"tracing,omitempty"`
	Cache         *Cache         `yaml:"cache,omitempty"`
	Secrets       *Secrets       `yaml:"secrets,omitempty"`
	Notifications *Notifications `yaml:"notifications,omitempty"`
	Passwords     *Passwords     `yaml:"passwords,omitempty"`
	DebugMode     bool           `yaml:"debugMode"`
	LogLevel      string         `yaml:"logLevel"`
}

func (*Configuration) IsZero added in v0.32.6

func (c *Configuration) IsZero() bool

type ConsoleEnv

type ConsoleEnv struct {
	AuthServiceURL string `json:"authServiceUrl"`
	MgmtServiceURL string `json:"mgmtServiceUrl"`
	Issuer         string `json:"issuer"`
	ClientID       string `json:"clientid"`
}

type Email

type Email struct {
	SMTPHost      string         `yaml:"smtpHost,omitempty"`
	SMTPUser      string         `yaml:"smtpUser,omitempty"`
	SenderAddress string         `yaml:"senderAddress,omitempty"`
	SenderName    string         `yaml:"senderName,omitempty"`
	TLS           bool           `yaml:"tls,omitempty"`
	AppKey        *secret.Secret `yaml:"appKey,omitempty"`
}

func (*Email) IsZero added in v0.32.6

func (e *Email) IsZero() bool

type Notifications

type Notifications struct {
	GoogleChatURL *secret.Secret `yaml:"googleChatURL,omitempty"`
	Email         *Email         `yaml:"email,omitempty"`
	Twilio        *Twilio        `yaml:"twilio,omitempty"`
}

func (*Notifications) IsZero added in v0.32.6

func (n *Notifications) IsZero() bool

type Passwords

type Passwords struct {
	Migration    *secret.Secret `yaml:"migration"`
	Management   *secret.Secret `yaml:"management"`
	Auth         *secret.Secret `yaml:"auth"`
	Authz        *secret.Secret `yaml:"authz"`
	Adminapi     *secret.Secret `yaml:"adminapi"`
	Notification *secret.Secret `yaml:"notification"`
	Eventstore   *secret.Secret `yaml:"eventstore"`
}

func (*Passwords) IsZero added in v0.32.6

func (p *Passwords) IsZero() bool

type Secrets

type Secrets struct {
	Keys                    *secret.Secret `yaml:"keys,omitempty"`
	UserVerificationID      string         `yaml:"userVerificationID,omitempty"`
	OTPVerificationID       string         `yaml:"otpVerificationID,omitempty"`
	OIDCKeysID              string         `yaml:"oidcKeysID,omitempty"`
	CookieID                string         `yaml:"cookieID,omitempty"`
	CSRFID                  string         `yaml:"csrfID,omitempty"`
	DomainVerificationID    string         `yaml:"domainVerificationID,omitempty"`
	IDPConfigVerificationID string         `yaml:"idpConfigVerificationID,omitempty"`
}

func (*Secrets) IsZero added in v0.32.6

func (s *Secrets) IsZero() bool

type Tracing

type Tracing struct {
	ServiceAccountJSON *secret.Secret `yaml:"serviceAccountJSON,omitempty"`
	ProjectID          string         `yaml:"projectID,omitempty"`
	Fraction           string         `yaml:"fraction,omitempty"`
	Type               string         `yaml:"type,omitempty"`
}

func (*Tracing) IsZero added in v0.32.6

func (t *Tracing) IsZero() bool

type Twilio

type Twilio struct {
	SenderName string         `yaml:"senderName,omitempty"`
	AuthToken  *secret.Secret `yaml:"authToken,omitempty"`
	SID        *secret.Secret `yaml:"sid,omitempty"`
}

func (*Twilio) IsZero added in v0.32.6

func (t *Twilio) IsZero() bool

Jump to

Keyboard shortcuts

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