env

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Key           = "APPSCODE_ENV"
	ProdApiServer = "https://api.appscode.com:3443"
	QAApiServer   = "https://api.appscode.info:3443"
)

Variables

This section is empty.

Functions

func InCluster

func InCluster() bool

Possible returns true if loading an inside-kubernetes-cluster is possible. ref: https://goo.gl/mrlLyr

Types

type Environment

type Environment string
const (
	Dev    Environment = "dev"
	QA     Environment = "qa"
	Prod   Environment = "prod"
	Onebox Environment = "onebox"
)

func FromHost

func FromHost() Environment

func FromString

func FromString(e string) Environment

func (Environment) APIServer

func (e Environment) APIServer() (string, error)

func (Environment) DebugEnabled

func (e Environment) DebugEnabled() bool

func (Environment) DevMode

func (e Environment) DevMode() bool

func (Environment) IsHosted

func (e Environment) IsHosted() bool

func (Environment) IsPublic

func (e Environment) IsPublic() bool

func (*Environment) MarshalJSON

func (e *Environment) MarshalJSON() ([]byte, error)

func (Environment) String

func (e Environment) String() string

func (*Environment) UnmarshalJSON

func (e *Environment) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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