config

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorConfig

type OperatorConfig struct {
	Webhooks struct {
		Enabled  bool   `mapstructure:"webhooks-enabled" default:"false"`
		CertDir  string `mapstructure:"webhooks-cert-dir" default:"certs"`
		Port     int    `mapstructure:"webhooks-port" default:"9443"`
		DenyList string `mapstructure:"webhooks-deny-list"`
	} `mapstructure:",squash"`
	Subroutines struct {
		Workspace struct {
			Enabled bool `mapstructure:"subroutines-workspace-enabled" default:"true"`
		} `mapstructure:",squash"`
		AccountInfo struct {
			Enabled bool `mapstructure:"subroutines-account-info-enabled" default:"true"`
		} `mapstructure:",squash"`
		FGA struct {
			Enabled         bool   `mapstructure:"subroutines-fga-enabled" default:"true"`
			RootNamespace   string `mapstructure:"subroutines-fga-root-namespace" default:"platform-mesh-root"`
			GrpcAddr        string `mapstructure:"subroutines-fga-grpc-addr" default:"localhost:8081"`
			ObjectType      string `mapstructure:"subroutines-fga-object-type" default:"account"`
			ParentRelation  string `mapstructure:"subroutines-fga-parent-relation" default:"parent"`
			CreatorRelation string `mapstructure:"subroutines-fga-creator-relation" default:"owner"`
		} `mapstructure:",squash"`
	} `mapstructure:",squash"`
	Kcp struct {
		ApiExportEndpointSliceName string `mapstructure:"kcp-api-export-endpoint-slice-name"`
		ProviderWorkspace          string `mapstructure:"kcp-provider-workspace" default:"root"`
	} `mapstructure:",squash"`
}

OperatorConfig struct to hold the app config

Jump to

Keyboard shortcuts

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