environment

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IstioEnvironment

type IstioEnvironment struct {
	Type              string            `env:"TYPE"`
	PodName           string            `env:"POD_NAME"`
	PodNamespace      string            `env:"POD_NAMESPACE"`
	PodOwner          string            `env:"POD_OWNER"`
	PodServiceAccount string            `env:"POD_SERVICE_ACCOUNT"`
	WorkloadName      string            `env:"WORKLOAD_NAME"`
	AppContainers     []string          `env:"APP_CONTAINERS"`
	InstanceIPs       []string          `env:"INSTANCE_IP"`
	Labels            map[string]string `env:"LABELS"`
	PlatformMetadata  map[string]string `env:"PLATFORM_METADATA"`
	Network           string            `env:"NETWORK"`
	SearchDomains     []string          `env:"SEARCH_DOMAINS"`

	ClusterID string `env:"CLUSTER_ID"`
	DNSDomain string `env:"DNS_DOMAIN"`
	MeshID    string `env:"MESH_ID"`

	IstioCAAddress string `env:"ISTIO_CA_ADDR"`
	IstioVersion   string `env:"ISTIO_VERSION"`
	IstioRevision  string `env:"ISTIO_REVISION"`
}

func GetIstioEnvironment

func GetIstioEnvironment(prefix string) (*IstioEnvironment, error)

func (*IstioEnvironment) GetClusterName

func (e *IstioEnvironment) GetClusterName() string

func (*IstioEnvironment) GetDNSDomain

func (e *IstioEnvironment) GetDNSDomain() string

func (*IstioEnvironment) GetDNSServiceDomain

func (e *IstioEnvironment) GetDNSServiceDomain() string

func (*IstioEnvironment) GetNodeID

func (e *IstioEnvironment) GetNodeID() string

func (*IstioEnvironment) GetNodePropertiesFromEnvironment

func (e *IstioEnvironment) GetNodePropertiesFromEnvironment() map[string]interface{}

func (*IstioEnvironment) GetSpiffeID

func (e *IstioEnvironment) GetSpiffeID() string

func (*IstioEnvironment) Override

func (e *IstioEnvironment) Override(otherEnv IstioEnvironment)

Jump to

Keyboard shortcuts

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