registry

package
v0.0.0-...-63585a5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTP *http.Client
}

func (*Client) Discover

func (c *Client) Discover(hostname string) (string, error)

Discover obtains the module index base URL for the given hostname. ref.: https://www.terraform.io/docs/registry/api.html#service-discovery

func (*Client) ListVersions

func (c *Client) ListVersions(baseURL, namespace, name, provider string) ([]string, error)

ListVersions lists the available module versions for the a specific module. ref.: https://www.terraform.io/docs/registry/api.html#list-available-versions-for-a-specific-module

Jump to

Keyboard shortcuts

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