streams

package
v0.0.0-...-d3f0d38 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSImages

type AWSImages struct {
	Regions map[string]AWSRegionalOffering `json:"regions"`
}

type AWSRegionalOffering

type AWSRegionalOffering struct {
	Release string `json:"release"`
	Image   string `json:"image"`
}

type Arch

type Arch struct {
	Artifacts map[string]Artifact `json:"artifacts"`
	Images    CloudImages         `json:"images"`
}

type Artifact

type Artifact struct {
	Release string `json:"release"`
	Formats `json:"formats"`
}

type CloudImages

type CloudImages struct {
	AWS AWSImages `json:"aws"`
	GCP GCPImages `json:"gcp"`
}

type Formats

type Formats map[string]map[string]*Resource

type GCPImages

type GCPImages struct {
	Project string `json:"project"`
	Family  string `json:"family"`
	Name    string `json:"name"`
}

type Resolver

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

func New

func New() Resolver

func (Resolver) Resolve

func (r Resolver) Resolve(ctx context.Context, stream string) (*Stream, error)

type Resource

type Resource struct {
	Location  string `json:"location"`
	Signature string `json:"signature"`
	Sha256    string `json:"sha256"`
}

type Stream

type Stream struct {
	Name          string          `json:"stream"`
	Metadata      StreamMetadata  `json:"metadata"`
	Architectures map[string]Arch `json:"architectures"`
}

type StreamMetadata

type StreamMetadata struct {
	LastModified string `json:"last-modified"`
}

Jump to

Keyboard shortcuts

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