Documentation ¶
Overview ¶
Package cloudstorage helps detect where an Ambient app is running and provides the correct storage plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunningInAWS ¶
func RunningInAWS() bool
RunningInAWS returns true if running in AWS services. When running in App Runner, it will be set: AWS_EXECUTION_ENV=AWS_ECS_FARGATE.
func RunningInAWSLambda ¶
func RunningInAWSLambda() bool
RunningInAWSLambda returns true if running in AWS Lambda.
func RunningInAzureFunction ¶
func RunningInAzureFunction() bool
RunningInAzureFunction returns true if running in Azure Functions.
func RunningInGoogle ¶
func RunningInGoogle() bool
RunningInGoogle returns true if running in Google. When running in Google Cloud Run, will be set: K_SERVICE=NAME.
func StorageBasedOnCloud ¶
func StorageBasedOnCloud(sitePath string, sessionPath string) ambient.StoragePlugin
StorageBasedOnCloud returns storage engine based on the environment it's running in.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.