images

package
v1.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 4 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 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
	CalicoCNI Resource = iota + 1
	CalicoController
	CalicoNode
	DigitaloceanCCM
	DNSNodeCache
	Flannel
	HetznerCCM
	MachineController
	MetricsServer
	OpenstackCCM
	PacketCCM
	VsphereCCM
	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