registry

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: MPL-2.0 Imports: 16 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 {
	// contains filtered or unexported fields
}

Client provides methods to query Terraform Registries.

func NewClient

func NewClient(services *disco.Disco, creds auth.CredentialsSource, client *http.Client) *Client

func (*Client) Discover

func (c *Client) Discover(host svchost.Hostname) *url.URL

Discover qeuries the host, and returns the url for the registry.

func (*Client) Location

func (c *Client) Location(module *regsrc.Module, version string) (string, error)

Location 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) Versions

func (c *Client) Versions(module *regsrc.Module) (*response.ModuleVersions, error)

Versions queries the registry for a module, and returns the available versions.

Directories

Path Synopsis
Package regsrc provides helpers for working with source strings that identify resources within a Terraform registry.
Package regsrc provides helpers for working with source strings that identify resources within a Terraform registry.

Jump to

Keyboard shortcuts

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