utils

package
v0.0.0-...-e74272a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppNamespaceEnvVar is the constant for env variable AppNamespaceEnvVar
	// which is the namespace where the APP CR can applied.
	// The namespaces should be informed split by ";".
	AppNamespaceEnvVar = "APP_NAMESPACES"
	// OperatorNamespaceForLocalEnv is valid and used just in the local env and for the tests.
	OperatorNamespaceForLocalEnv   = "mobile-security-service"
	ProxyServiceInstanceName       = "mobile-security-service-proxy"
	ApplicationServiceInstanceName = "mobile-security-service-application"
	APIEndpoint                    = "/api"
	APIRequestProtocol             = "http"
	// The MobileSecurityServiceCRName has the name of the CR which should not be changed.
	MobileSecurityServiceCRName   = "mobile-security-service"
	MobileSecurityServiceDBCRName = "mobile-security-service-db"
)

Variables

This section is empty.

Functions

func GetAppNamespaces

func GetAppNamespaces() (string, error)

GetAppNamespaces returns the namespace the operator should be watching for changes

func GetServiceAPIURL

Return REST Service API

func IsValidAppNamespace

func IsValidAppNamespace(namespace string) (bool, error)

IsValidAppNamespace return true when the namespace informed is declared in the ENV VAR APP_NAMESPACES

func IsValidOperatorNamespace

func IsValidOperatorNamespace(namespace string) (bool, error)

IsValidOperatorNamespace return true when the namespace informed is declared in the ENV VAR APP_NAMESPACES

Types

This section is empty.

Jump to

Keyboard shortcuts

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