Documentation ¶
Index ¶
- Constants
- func InCluster() bool
- type Environment
- func (e Environment) APIServer() (string, error)
- func (e Environment) DebugEnabled() bool
- func (e Environment) DevMode() bool
- func (e Environment) IsHosted() bool
- func (e Environment) IsPublic() bool
- func (e *Environment) MarshalJSON() ([]byte, error)
- func (e Environment) String() string
- func (e *Environment) UnmarshalJSON(data []byte) error
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
Click to show internal directories.
Click to hide internal directories.