registry

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MPL-2.0 Imports: 10 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 {
	BaseURL string
	Timeout time.Duration
}

func NewClient

func NewClient() Client

func (Client) GetMatchingModuleVersion

func (c Client) GetMatchingModuleVersion(ctx context.Context, addr tfaddr.Module, con version.Constraints) (*version.Version, error)

func (Client) GetModuleData

func (c Client) GetModuleData(ctx context.Context, addr tfaddr.Module, cons version.Constraints) (*ModuleResponse, error)

func (Client) GetModuleVersions

func (c Client) GetModuleVersions(ctx context.Context, addr tfaddr.Module) (version.Collection, error)

type Input

type Input struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Description string `json:"description"`
	Default     string `json:"default"`
	Required    bool   `json:"required"`
}

type ModuleResponse

type ModuleResponse struct {
	Version string     `json:"version"`
	Root    ModuleRoot `json:"root"`
}

type ModuleRoot

type ModuleRoot struct {
	Inputs  []Input  `json:"inputs"`
	Outputs []Output `json:"outputs"`
}

type ModuleVersion

type ModuleVersion struct {
	Version string `json:"version"`
}

type ModuleVersionsEntry

type ModuleVersionsEntry struct {
	Versions []ModuleVersion `json:"versions"`
}

type ModuleVersionsResponse

type ModuleVersionsResponse struct {
	Modules []ModuleVersionsEntry `json:"modules"`
}

type Output

type Output struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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