mpimage

package
v2.19.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

The mpimage package provides utilities for handling CSP marketplace OS images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureMarketplaceImage

type AzureMarketplaceImage struct {
	Publisher string
	Offer     string
	SKU       string
	Version   string
}

AzureMarketplaceImage represents an Azure marketplace image.

func NewAzureMarketplaceImage

func NewAzureMarketplaceImage(version semver.Semver) AzureMarketplaceImage

NewAzureMarketplaceImage returns a new Constellation marketplace image for the given version.

func (AzureMarketplaceImage) URI

func (i AzureMarketplaceImage) URI() string

URI returns the URI for the image.

type MarketplaceImage

type MarketplaceImage interface {
	URI() string
}

MarketplaceImage represents a CSP-agnostic marketplace image.

func NewFromURI

func NewFromURI(uri string) (MarketplaceImage, error)

NewFromURI returns a new MarketplaceImage for the given image URI.

Jump to

Keyboard shortcuts

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