v1

package
v0.0.75-CIEDEV-3005.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProviderInputsFromRequest

func GetProviderInputsFromRequest(r *http.Request) (string, string, string)

func GetProviderNameFromRequest

func GetProviderNameFromRequest(r *http.Request) string

func New

func New() *providersV1HttpService

Types

type GPGPublicKey

type GPGPublicKey struct {
	KeyID          string `json:"key_id"`
	ASCIIArmor     string `json:"ascii_armor"`
	TrustSignature string `json:"trust_signature"`
	Source         string `json:"source"`
	SourceURL      string `json:"source_url"`
}

type Platform

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

type PlatformMetadataResponse

type PlatformMetadataResponse struct {
	Protocols     Protocols   `json:"protocols"`
	OS            string      `json:"os"`
	Arch          string      `json:"arch"`
	Filename      string      `json:"filename"`
	DownloadURL   string      `json:"download_url"`
	ShasumsURL    string      `json:"shasums_url"`
	ShasumsSigURL string      `json:"shasums_signature_url"`
	Shasum        string      `json:"shasum"`
	SigningKeys   SigningKeys `json:"signing_keys"`
}

type Protocols

type Protocols []string

type ProviderData

type ProviderData map[string]*VersionData

type ProviderMetadata

type ProviderMetadata struct {
	OS                  string      `json:"os"`
	Arch                string      `json:"arch"`
	Filename            string      `json:"filename"`
	DownloadURL         string      `json:"download_url"`
	ShasumsURL          string      `json:"shasums_url"`
	ShasumsSignatureURL string      `json:"shasums_signature_url"`
	Shasum              string      `json:"shasum"`
	SigningKeys         SigningKeys `json:"signing_keys"`
}

type ProviderVersionsResponse

type ProviderVersionsResponse struct {
	Versions []VersionItem `json:"versions"`
}

type SigningKeys

type SigningKeys struct {
	GPGPublicKeys []GPGPublicKey `json:"gpg_public_keys"`
}

type VersionData

type VersionData struct {
	Protocols Protocols          `json:"protocols"`
	Platforms []ProviderMetadata `json:"platforms"`
}

type VersionItem

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

Jump to

Keyboard shortcuts

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