terraform

package
v0.0.0-...-48cb76c Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StringFilterMatchAll = func(string) bool {
	return true
}

Functions

func DefaultPluginsPath

func DefaultPluginsPath() string

Types

type LocalProviderDiscoveryOpts

type LocalProviderDiscoveryOpts struct {
	PluginsPath    string
	RegistryFilter StringFilterFunc
}

type Platform

type Platform struct {
	OS   string `json:"os"`
	Arch string `json:"arch"`
}

type Provider

type Provider struct {
	ID  string
	URL string

	Namespace string
	Type      string
	Version   string

	OS   string
	Arch string
}

type ProviderDiscovery

type ProviderDiscovery interface {
	Discover() ([]Provider, error)
}

func NewLocalProviderDiscovery

func NewLocalProviderDiscovery(opts LocalProviderDiscoveryOpts) ProviderDiscovery

type StringFilterFunc

type StringFilterFunc func(string) bool

type VersionInfo

type VersionInfo struct {
	Version   string     `json:"version"`
	Platforms []Platform `json:"platforms"`
	Protocols []string   `json:"-"`
}

func FindVersions

func FindVersions(providers []Provider, providerNamespace, providerType string) (versions []VersionInfo, errr error)

Jump to

Keyboard shortcuts

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