helpers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidEndpointUrl

func IsValidEndpointUrl(endpoint string) bool

IsValidEndpointUrl checks if the provided string is a valid URL.

func IsValidService

func IsValidService(service *sharedtypes.Service) bool

IsValidService checks if the provided ServiceId struct has valid fields TODO_TECHDEBT: Refactor to a `Service#ValidateBasic` method.

func IsValidServiceId

func IsValidServiceId(serviceId string) bool

IsValidServiceId checks if the input string is a valid serviceId TODO_TECHDEBT: Refactor to a `ServiceId#ValidateBasic` method.

func IsValidServiceName

func IsValidServiceName(serviceName string) bool

IsValidServiceName checks if the input string is a valid serviceName

func ValidateAppServiceConfigs

func ValidateAppServiceConfigs(services []*sharedtypes.ApplicationServiceConfig) error

ValidateAppServiceConfigs returns an error if any of the application service configs are invalid

func ValidateSupplierServiceConfigs

func ValidateSupplierServiceConfigs(services []*sharedtypes.SupplierServiceConfig) error

ValidateSupplierServiceConfigs returns an error if any of the supplier service configs are invalid

Types

This section is empty.

Jump to

Keyboard shortcuts

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