types

package
v0.0.0-...-03f4643 Latest Latest
Warning

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

Go to latest
Published: May 26, 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 NamespaceType

type NamespaceType string
const (
	NamespaceIPC NamespaceType = "ipc"
	NamespaceUTS NamespaceType = "uts"
	NamespaceMNT NamespaceType = "mnt"
)

type Reference

type Reference struct {
	Name   string            `json:"name"`
	Labels map[string]string `json:"labels"`
}

Reference represents a checkpoint or an image in cer-manager

func NewContainerdReference

func NewContainerdReference(name string, namespace string) Reference

func (Reference) Digest

func (ref Reference) Digest() string

func (Reference) GetLabelWithKey

func (ref Reference) GetLabelWithKey(key string) string

func (Reference) String

func (ref Reference) String() string

type Supplier

type Supplier interface {
	Get(ref Reference) (string, error)
}

Supplier provides the path of checkpoint files belongs to ref

Jump to

Keyboard shortcuts

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