cloudstorage

package
v0.0.0-...-ecdd364 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 7 Imported by: 1

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.

Jump to

Keyboard shortcuts

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