Documentation
¶
Index ¶
- Constants
- func ConstructProviderVersionURI(providerNamespace interface{}, providerName string, ...) string
- func ContainsSlug(sourceName string, slug string) (bool, error)
- func ExtractProviderNameAndVersion(uri string) (string, string, string)
- func ExtractReadme(readme string) string
- func IsV2ProviderDataType(dataType string) bool
- func IsValidProviderDataType(providerDataType string) bool
- func IsValidProviderVersionFormat(version string) bool
- func LogAndReturnError(logger *log.Logger, context string, err error) error
Constants ¶
View Source
const PROVIDER_BASE_PATH = "registry://providers"
Variables ¶
This section is empty.
Functions ¶
func ContainsSlug ¶
ContainsSlug checks if the sourceName string contains the slug string anywhere within it. It safely handles potential regex metacharacters in the slug.
func ExtractReadme ¶
func IsV2ProviderDataType ¶
func IsValidProviderDataType ¶
func IsValidProviderVersionFormat ¶
IsValidProviderVersionFormat checks if the provider version format is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.