types

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(list []string)

Sort sorts a list of semantic version strings using ByRootfs.

func SortByImageInfo added in v1.0.2

func SortByImageInfo(list []ImageInfo)

Types

type ByImageInfo added in v1.0.2

type ByImageInfo []ImageInfo

func (ByImageInfo) Len added in v1.0.2

func (vs ByImageInfo) Len() int

func (ByImageInfo) Less added in v1.0.2

func (vs ByImageInfo) Less(i, j int) bool

func (ByImageInfo) Swap added in v1.0.2

func (vs ByImageInfo) Swap(i, j int)

type ByLatest

type ByLatest []string

func (ByLatest) Len

func (vs ByLatest) Len() int

func (ByLatest) Less

func (vs ByLatest) Less(i, j int) bool

func (ByLatest) Swap

func (vs ByLatest) Swap(i, j int)

type ImageInfo

type ImageInfo struct {
	Name string
	Url  string
	Tags []string
}

type RepoInfo

type RepoInfo struct {
	Rootfs []ImageInfo
	Sealos []ImageInfo
	Laf    []ImageInfo
	Apps   []ImageInfo
}

Jump to

Keyboard shortcuts

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