images

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOpt

type GetOpt func(ref string) string

func WithDomain

func WithDomain(domain string) GetOpt

func WithTag

func WithTag(tag string) GetOpt

type ListFilter

type ListFilter int
const (
	ListFilterNone ListFilter = iota
	ListFilterBase
	ListFilterOpional
)

type Opt

type Opt func(*Resolver)

func WithKubernetesVersionGetter

func WithKubernetesVersionGetter(getter func() string) Opt

func WithOverwriteRegistryGetter

func WithOverwriteRegistryGetter(getter func() string) Opt

type Resolver

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

func NewResolver

func NewResolver(opts ...Opt) *Resolver

func (*Resolver) Get

func (r *Resolver) Get(res Resource, opts ...GetOpt) string

func (*Resolver) List

func (r *Resolver) List(lf ListFilter) []string

func (*Resolver) Tag

func (r *Resolver) Tag(res Resource) string

type Resource

type Resource int
const (
	// default 0 index has no meaning
	AzureCCM Resource = iota + 1
	AzureCNM
	CalicoCNI
	CalicoController
	CalicoNode
	ClusterAutoscaler
	CSIAttacher
	CSINodeDriverRegistar
	CSIProvisioner
	CSISnapshotter
	CSIResizer
	CSILivenessProbe
	DigitaloceanCCM
	DNSNodeCache
	Flannel
	HetznerCCM
	HetznerCSI
	MachineController
	MetricsServer
	OpenstackCCM
	OpenstackCSI
	PacketCCM
	VsphereCCM
	VsphereCSIDriver
	VsphereCSISyncer
	WeaveNetCNIKube
	WeaveNetCNINPC
)

func FindResource

func FindResource(name string) (Resource, error)

func (Resource) String

func (i Resource) String() string

Jump to

Keyboard shortcuts

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