platform

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidOsArch

func IsValidOsArch(Os string, Arch string) bool

Types

type OsArch

type OsArch struct {
	Os   string
	Arch string
}

type PlatformMap

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

func GetPlatforms

func GetPlatforms(imageName string) (*PlatformMap, error)

func NewPlatformMap

func NewPlatformMap() *PlatformMap

func (*PlatformMap) Add

func (pm *PlatformMap) Add(os, arch string)

func (*PlatformMap) Get

func (pm *PlatformMap) Get() OsArch

func (*PlatformMap) GetString

func (pm *PlatformMap) GetString() string

Jump to

Keyboard shortcuts

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