Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsModuleNotFound ¶
IsModuleNotFound returns true only if the given error is a "module not found" error. This allows callers to recognize this particular error condition as distinct from operational errors such as poor network connectivity.
func IsServiceNotProvided ¶
IsServiceNotProvided returns true only if the given error is a "service not provided" error. This allows callers to recognize this particular error condition as distinct from operational errors such as poor network connectivity.
func IsServiceUnreachable ¶
IsServiceUnreachable returns true if the registry/discovery service was unreachable
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides methods to query Terraform Registries.
func (*Client) ModuleLocation ¶
ModuleLocation find the download location for a specific version module. This returns a string, because the final location may contain special go-getter syntax.
func (*Client) ModuleVersions ¶
ModuleVersions queries the registry for a module, and returns the available versions.
type ServiceUnreachableError ¶
type ServiceUnreachableError struct {
// contains filtered or unexported fields
}
ServiceUnreachableError Registry service is unreachable
func (*ServiceUnreachableError) Error ¶
func (e *ServiceUnreachableError) Error() string