executioncontext

package
v0.0.0-...-e73abb9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 6 Imported by: 0

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 Get

func Get() *Context

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 IstioContext struct {
	Profile string `json:"profile"`
	Context string `json:"context"`
}

type KubernetesContext

type KubernetesContext struct {
	KubeConfig string `json:"kube-config"`
	Context    string `json:"context"`
}

KubernetesContext entity

type ServiceBusContext

type ServiceBusContext struct {
	Topic        string `json:"topic"`
	Subscription string `json:"subscription"`
	Queue        string `json:"queue"`
	Message      string `json:"message"`
}

Jump to

Keyboard shortcuts

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