Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureClientContext ¶
type AzureClientContext struct { TenantID string `json:"tenantId"` SubscriptionID string `json:"subscriptionId"` ClientID string `json:"clientId"` ClientSecret string `json:"clientSecret"` ResourceGroup string `json:"resourceGroup"` Storage *AzureStorageContext `json:"storage"` }
AzureClientContext entity
func (*AzureClientContext) IsValid ¶
func (c *AzureClientContext) IsValid() bool
type AzureStorageContext ¶
type AzureStorageContext struct { PrimaryAccountKey string `json:"primaryAccountKey"` SecondaryAccountKey string `json:"secondaryAccountKey"` AccountName string `json:"storageAccount"` ContainerName string `json:"storageContainer"` FileName string `json:"fileName"` FromPath string `json:"fromPath"` ToFileName string `json:"toFileName"` ToPath string `json:"toPath"` }
AzureStorageContext entity
type Context ¶
type Context struct { Module string `json:"module"` Operation string `json:"operation"` TenantID string `json:"tenantId"` Database string `json:"database"` ShowHelp bool `json:"help"` AzureClient AzureClientContext `json:"azureClient"` Blob AzureStorageContext `json:"blob"` Kubernetes KubernetesContext `json:"kubernetes"` Istio IstioContext `json:"istio"` ServiceBus ServiceBusContext `json:"service-bus"` }
Context entity
func (*Context) GetAzureContext ¶
func (e *Context) GetAzureContext()
func (*Context) Getenv ¶
func (e *Context) Getenv()
Getenv gets the environment variables for the entities
func (*Context) SetAzureEnvironmentKeys ¶
func (e *Context) SetAzureEnvironmentKeys()
func (*Context) SetAzureStorageContext ¶
func (e *Context) SetAzureStorageContext(context *AzureStorageContext)
type IstioContext ¶
type KubernetesContext ¶
type KubernetesContext struct { KubeConfig string `json:"kube-config"` Context string `json:"context"` }
KubernetesContext entity
Click to show internal directories.
Click to hide internal directories.