envs

package
v0.12.5-rc.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 11

Documentation

Index

Constants

View Source
const (
	ENABLED = "true"
)

Variables

This section is empty.

Functions

func HasBilling added in v0.8.0

func HasBilling() bool

HasBilling returns true if the current ShellHub server instance has billing feature enabled.

func IsCloud

func IsCloud() bool

IsCloud returns true if the current ShellHub server instance is cloud.

func IsCommunity added in v0.12.5

func IsCommunity() bool

IsCommunity return true if the current ShellHub server instance is community. It evaluates if the current ShellHub instance is neither enterprise or cloud .

func IsEnterprise

func IsEnterprise() bool

IsEnterprise returns true if the current ShellHub server instance is enterprise.

Types

type Backend

type Backend interface {
	Get(key string) string
}

Backend is an interface for any sort of underlying key/value store.

var DefaultBackend Backend

DefaultBackend define the backend to be used to get environment variables.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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