Documentation
¶
Index ¶
- func BuildURL(baseUrl, apiType, repoKey, urlSuffix string) string
- func ExtractRepoKeyFromURL(urlStr, apiType string) string
- func GetBaseUrl(rtDetails *config.ServerDetails) string
- func GetServerDetails(c *components.Context) (*config.ServerDetails, error)
- func HasServerConfigFlags(c *components.Context) bool
- func IsValidUrl(s string) bool
- func ValidateRepository(repoKey string, rtDetails *config.ServerDetails, apiType string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractRepoKeyFromURL ¶
ExtractRepoKeyFromURL extracts repository key from a URL containing the API type
func GetBaseUrl ¶
func GetBaseUrl(rtDetails *config.ServerDetails) string
GetBaseUrl extracts the base URL from server details
func GetServerDetails ¶
func GetServerDetails(c *components.Context) (*config.ServerDetails, error)
GetServerDetails retrieves server configuration from flags or default config
func HasServerConfigFlags ¶
func HasServerConfigFlags(c *components.Context) bool
HasServerConfigFlags checks if any server configuration flags are provided
func IsValidUrl ¶
IsValidUrl checks if a string is a valid URL with scheme and host
func ValidateRepository ¶
func ValidateRepository(repoKey string, rtDetails *config.ServerDetails, apiType string) error
ValidateRepository validates that the repository exists and is of the specified type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.