checker

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTerraformModule = errors.New("no terraform module found")

Functions

func Main

func Main(path string, includePrerelease bool, sshPrivKeyPath string, sshPrivKeyPwd string) (output.Updates, error)

Types

type Client

type Client struct {
	Registry      registry.Client
	GitAuth       transport.AuthMethod
	VersionsCache map[string][]*goversion.Version
}

func (*Client) Update

func (c *Client) Update(s source.Source, current *goversion.Version, constraints goversion.Constraints, includePrerelease bool) (*Update, error)

func (*Client) Versions

func (c *Client) Versions(s source.Source) ([]*goversion.Version, error)

type Parsed added in v0.4.3

type Parsed struct {
	Source            *source.Source
	Version           *goversion.Version
	VersionString     string
	Constraints       goversion.Constraints
	ConstraintsString string
	RawCore           *RawCore
	RawModule         *tfconfig.ModuleCall
	RawProvider       *tfconfig.ProviderRequirement
}

type RawCore added in v0.6.0

type RawCore struct {
	Name            string
	RequiredVersion []string
}

type Update

type Update struct {
	LatestMatchingVersion goversion.Version
	LatestOverallVersion  goversion.Version
	LatestMatchingUpdate  goversion.Version
	LatestOverallUpdate   goversion.Version
}

Jump to

Keyboard shortcuts

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