Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildURL

func BuildURL(baseUrl, apiType, repoKey, urlSuffix string) string

BuildURL builds a full URL for a repository

func ExtractRepoKeyFromURL

func ExtractRepoKeyFromURL(urlStr, apiType string) string

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

func IsValidUrl(s string) bool

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.

Jump to

Keyboard shortcuts

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