Documentation ¶
Overview ¶
Package common contains common functions and types used by BindPlane.
Index ¶
Constants ¶
View Source
const ( // ProfilesFolderName is the name of the profiles folder. ProfilesFolderName = "profiles" // DefaultHomeName is the default directory name for bindplane. DefaultHomeName = ".bindplane" // DefaultProfileName is the name of the default profile DefaultProfileName = "default" // HomeEnv is the environment variable for the bindplane home path. HomeEnv = "BINDPLANE_CONFIG_HOME" )
Variables ¶
View Source
var ( // ValidHTTPSchemes are the valid http schemes to be used with ValidateURL function ValidHTTPSchemes = []string{"http", "https"} // ValidWSSchemes are the valid websocket schemes to be used with ValidateURL function ValidWSSchemes = []string{"ws", "wss"} )
list of valid schemes for different protocols
Functions ¶
func GetProfilesFolder ¶ added in v1.16.0
func GetProfilesFolder() string
GetProfilesFolder returns the profiles folder path.
func ValidatePort ¶ added in v1.16.0
ValidatePort validates the port
func ValidateURL ¶ added in v1.16.0
ValidateURL validates the URL and ensures the scheme matches one of the valid schemes in the list
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.