registry

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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 {
	BaseURL          string
	Timeout          time.Duration
	ProviderPageSize int
	// contains filtered or unexported fields
}

func NewClient

func NewClient() Client

func (Client) GetLatestProviderVersion added in v0.29.3

func (c Client) GetLatestProviderVersion(id string) (*ProviderVersionResponse, error)

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)

func (Client) ListProviders added in v0.29.3

func (c Client) ListProviders(tier string) ([]Provider, error)

type ClientError added in v0.31.1

type ClientError struct {
	StatusCode int
	Body       string
}

func (ClientError) Error added in v0.31.1

func (rce ClientError) Error() string

type Included added in v0.29.3

type Included struct {
	Type       string             `json:"type"`
	Attributes IncludedAttributes `json:"attributes"`
}

type IncludedAttributes added in v0.29.3

type IncludedAttributes struct {
	Arch string `json:"arch"`
	Os   string `json:"os"`
}

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"`
	PublishedAt time.Time  `json:"published_at"`
	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"`
}

type Provider added in v0.29.3

type Provider struct {
	ID         string             `json:"id"`
	Attributes ProviderAttributes `json:"attributes"`
}

type ProviderAttributes added in v0.29.3

type ProviderAttributes struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type ProviderVersionAttributes added in v0.29.3

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

type ProviderVersionData added in v0.29.3

type ProviderVersionData struct {
	Attributes ProviderVersionAttributes `json:"attributes"`
}

type ProviderVersionResponse added in v0.29.3

type ProviderVersionResponse struct {
	Data     ProviderVersionData `json:"data"`
	Included []Included          `json:"included"`
}

Jump to

Keyboard shortcuts

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