types

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidType = errors.New("invalid image type")
)

Functions

This section is empty.

Types

type FilterSet

type FilterSet map[string]map[string]bool

FilterSet is a set to filter image arch, os, variants.

func NewImageFilterSet

func NewImageFilterSet(archList, osList, variantList []string) FilterSet

NewImageFilterSet is the constructor function to build a filter set by arch, os and variant list.

func (FilterSet) Allow

func (s FilterSet) Allow(arch, os, variant string) bool

func (FilterSet) AllowArch

func (s FilterSet) AllowArch(arch string) bool

func (FilterSet) AllowOS

func (s FilterSet) AllowOS(os string) bool

func (FilterSet) AllowVariant

func (s FilterSet) AllowVariant(v string) bool

type ImageType

type ImageType int

ImageType represents some image types supported by Hangar.

const (
	TypeUndefined ImageType = iota
	TypeDocker
	TypeDockerDaemon
	TypeDockerArhive
	TypeOci
	TypeDir
	TypeHangarArchive
)

func (ImageType) String

func (t ImageType) String() string

func (*ImageType) Transport

func (t *ImageType) Transport() string

Jump to

Keyboard shortcuts

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