azure

package
v1.10.37 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagNameAzureTenantID     = "azure.tenant_id"
	FlagNameAzureClientID     = "azure.client_id"
	FlagNameAzureClientSecret = "azure.client_secret"
	FlagNameAzureTimeout      = "azure.timeout"
	FlagNameAzureCfgConn      = "azure.cfg.conn"
	FlagNameAzureCfgKey       = "azure.cfg.key"
)
View Source
const (
	FlagNameInsightsEnabled            = "azure.insights.enabled"
	FlagNameInsightsInstrumentationkey = "azure.insights.instrumentationkey"
	FlagNameInsightsBatchSize          = "azure.insights.batchsize"
	FlagNameInsightsBatchInterval      = "azure.insights.batchinterval"
)

Variables

View Source
var (
	FlagAzureTenantID     = common.SystemFlagString(FlagNameAzureTenantID, os.Getenv("AZURE_TENANT_ID"), "Azure configuration tenant ID. Omit to use ENV parameter AZURE_TENANT_ID.")
	FlagAzureClientID     = common.SystemFlagString(FlagNameAzureClientID, os.Getenv("AZURE_CLIENT_ID"), "Azure configuration client ID. Omit to use ENV parameter AZURE_CLIENT_ID")
	FlagAzureClientSecret = common.SystemFlagString(FlagNameAzureClientSecret, os.Getenv("AZURE_CLIENT_SECRET"), "Azure configuration client secret. Omit to use ENV parameter AZURE_CLIENT_SECRET")
	FlagAzureTimeout      = common.SystemFlagInt(FlagNameAzureTimeout, 10000, "Azure timeout")
	FlagAzureCfgConn      = common.SystemFlagString(FlagNameAzureCfgConn, "", "Azure configuration connection")
	FlagAzureCfgKey       = common.SystemFlagString(FlagNameAzureCfgKey, "", "Azure configuration key name")
)
View Source
var (
	FlagInsightsEnabled            = common.SystemFlagBool(FlagNameInsightsEnabled, false, "Azure insights enabled")
	FlagInsightsInstrumentationkey = common.SystemFlagString(FlagNameInsightsInstrumentationkey, "", "Azure insights instrumentation key")
	FlagInsightsBatchSize          = common.SystemFlagInt(FlagNameInsightsBatchSize, 8192, "Azure insights batch size")
	FlagInsightsBatchInterval      = common.SystemFlagInt(FlagNameInsightsBatchInterval, 100, "Azure insights batch interval")
)

Functions

This section is empty.

Types

type AzureAppCfg added in v1.9.85

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

func NewAzureAppCfg added in v1.9.85

func NewAzureAppCfg(tenantID string, clientID string, clientSecret string, cfgConn string) (*AzureAppCfg, error)

func (*AzureAppCfg) GetFlags added in v1.9.85

func (azureAppCfg *AzureAppCfg) GetFlags(cfgKey string, onlyFlags bool, timeout int) (map[string]string, error)

func (*AzureAppCfg) GetValue added in v1.9.85

func (azureAppCfg *AzureAppCfg) GetValue(ctx context.Context, key string) (string, error)

func (*AzureAppCfg) SetValue added in v1.9.85

func (azureAppCfg *AzureAppCfg) SetValue(ctx context.Context, key string, value string) error

Jump to

Keyboard shortcuts

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