platforms

package
v0.0.0-...-eb2ba85 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

The platforms package provides a constant interface to the different deployment platforms of Contrast.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllStrings

func AllStrings() []string

AllStrings returns a list of all available platforms as strings.

Types

type Platform

type Platform int

Platform is a type that represents a deployment platform of Contrast.

const (
	// Unknown is the default value for the platform type.
	Unknown Platform = iota
	// AKSCloudHypervisorSNP represents a deployment with Cloud-Hypervisor on SEV-SNP AKS.
	AKSCloudHypervisorSNP
	// K3sQEMUTDX represents a deployment with QEMU on bare-metal TDX K3s.
	K3sQEMUTDX
	// K3sQEMUSNP represents a deployment with QEMU on bare-metal SNP K3s.
	K3sQEMUSNP
	// RKE2QEMUTDX represents a deployment with QEMU on bare-metal TDX RKE2.
	RKE2QEMUTDX
)

func All

func All() []Platform

All returns a list of all available platforms.

func FromString

func FromString(s string) (Platform, error)

FromString returns the Platform type corresponding to the given string.

func (Platform) String

func (p Platform) String() string

String returns the string representation of the Platform type.

Jump to

Keyboard shortcuts

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