image

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package image is defined to return image of components

Index

Constants

View Source
const (
	PD      Untagged = "pingcap/pd"
	TiDB    Untagged = "pingcap/tidb"
	TiKV    Untagged = "pingcap/tikv"
	TiFlash Untagged = "pingcap/tiflash"
	TiCDC   Untagged = "pingcap/ticdc"
	// TSO also use pd image
	TSO Untagged = "pingcap/pd"
	// Scheduling also use pd image
	Scheduling Untagged = "pingcap/pd"
	// Scheduler also use pd image
	Scheduler Untagged = "pingcap/pd"
	TiProxy   Untagged = "pingcap/tiproxy"
	// ReplicationWorker also use tikv image
	ReplicationWorker Untagged = "pingcap/tikv"

	Helper Tagged = "busybox:1.37.0"
)

Variables

View Source
var PrestopChecker = Tagged("pingcap/tidb-operator-prestop-checker:latest")

Functions

func Validate

func Validate(img string) error

Types

type Tagged

type Tagged string

Tagged is image with image tag

func (Tagged) Image

func (t Tagged) Image(img *string) string

Image returns the image with the given tag Note: img must be validated before calling withVersion

func (*Tagged) Set

func (t *Tagged) Set(s string) error

Set implements flag.Value

func (*Tagged) String

func (t *Tagged) String() string

String implements flag.Value

type Untagged

type Untagged string

Untagged is image without image tag

func (Untagged) Image

func (t Untagged) Image(img *string, version string) string

Image returns the image with the given tag and version Note: img must be validated before calling withVersion TODO(liubo02): validate img and version

Jump to

Keyboard shortcuts

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