versions

package
v0.32.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudQueryOrg     = "cloudquery"
	GithubBaseURL     = "https://github.com"
	CloudQueryBaseURL = "https://versions.cloudquery.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client interacts with repositories to fetch version information. It relies on convention to determine the URL format to use when fetching. Official CloudQuery plugin versions are fetched from release manifest files, while community plugins are fetched using GithubLatestURL.

func NewClient

func NewClient() *Client

NewClient returns a new client for fetching plugin versions.

func (*Client) GetLatestProviderRelease

func (c *Client) GetLatestProviderRelease(ctx context.Context, org, pluginType, pluginName string) (string, error)

GetLatestProviderRelease returns the latest release version string for the given organization, plugin type and plugin.

Jump to

Keyboard shortcuts

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