camlistore.org: camlistore.org/pkg/env Index | Files

package env

import "camlistore.org/pkg/env"

Package env detects what sort of environment Camlistore is running in.

Index

Package Files

env.go env_nojs.go

func DebugUploads Uses

func DebugUploads() bool

DebugUploads reports whether this is a debug environment for uploads.

func IsDebug Uses

func IsDebug() bool

IsDebug reports whether this is a debug environment.

func IsDev Uses

func IsDev() bool

IsDev reports whether this is a development server environment (devcam server).

func OnGCE Uses

func OnGCE() bool

OnGCE reports whether this process is running in a Google Compute Engine (GCE) environment. This only returns true if the "camlistore-config-dir" instance metadata value is defined. Instances running in custom configs on GCE will be unaffected.

Package env imports 4 packages (graph) and is imported by 86 packages. Updated 2018-01-21. Refresh now. Tools for package owners.