env

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvAPI

type EnvAPI interface {
	// Get searches and returns the value of an environment variable in string
	// format.
	Get(name string) string

	// GetInt searches and returns the value of an environment variable in
	// an int format.
	GetInt(name string) (int, error)

	// GetBool searches and returns the value of an environment variable in
	// a boolean format.
	GetBool(name string) (bool, error)

	// DeploymentEnv gets the current service deployment environment.
	DeploymentEnv() definition.ServiceDeploy

	// TrackerHeaderName gives the current header name that contains the service
	// tracker ID (for HTTP services).
	TrackerHeaderName() string

	// IsCICD gets if the CI/CD is being running or not.
	IsCICD() bool

	// CoupledNamespace returns the namespace used by the services.
	CoupledNamespace() string

	// CoupledPort returns the port used to couple between services.
	CoupledPort() int32

	// GrpcPort returns the port number that gRPC services should use.
	GrpcPort() int32

	// HttpPort returns the port number that HTTP services should use.
	HttpPort() int32
}

Jump to

Keyboard shortcuts

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