Documentation ¶
Index ¶
- func GetAdaptorEndpointFromFlags(cmd *cobra.Command) (string, error)
- func GetDebugModeFromFlags(cmd *cobra.Command) bool
- func GetMetadataKeysFromCmdFlags(cmd *cobra.Command) ([]string, error)
- func MapContainsKeys(subject map[string]string, targets []string) bool
- func SanitizeLocalhost(host string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAdaptorEndpointFromFlags ¶
GetAdaptorEndpointFromFlags gets the value of --adaptor-api or returns an error in case it is not valid.
func GetDebugModeFromFlags ¶
GetDebugModeFromFlags gets the value of --debug flag
func GetMetadataKeysFromCmdFlags ¶
GetMetadataKeysFromCmdFlags returns the keys from --metadata-keys flag
func MapContainsKeys ¶
MapContainsKeys returns true if the subject map contains target keys
func SanitizeLocalhost ¶
SanitizeLocalhost changes localhost to host.docker.internal in case the project is running as a docker container.
Of course, this function won't work with values like localhostS or localhost-example.com, but that is intentionally left un-implemented as that is a very corner case.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.