plugin

package
v0.0.0-...-41bfa65 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Kubeadm   = "kubeadm"
	IgnoreKey = "W0508"

	SkopeoDriver = "skopeo"
	DockerDriver = "docker"

	MaxConcurrency = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeadmImage

type KubeadmImage struct {
	Images []string `json:"images"`
}

type KubeadmVersion

type KubeadmVersion struct {
	ClientVersion struct {
		GitVersion string `json:"gitVersion"`
	} `json:"clientVersion"`
}

type PluginController

type PluginController struct {
	KubernetesVersion string
	Callback          string
	RegistryId        int64
	TaskId            int64
	Synced            bool

	Cfg      config.Config
	Registry config.Registry
	Images   []config.Image

	Runners []Runner
	// contains filtered or unexported fields
}

func NewPluginController

func NewPluginController(cfg config.Config) *PluginController

func (*PluginController) Close

func (p *PluginController) Close()

func (*PluginController) Complete

func (p *PluginController) Complete() error

func (*PluginController) CreateImages

func (p *PluginController) CreateImages(names []string) ([]model.Image, error)

func (*PluginController) CreateTaskMessage

func (p *PluginController) CreateTaskMessage(msg string)

func (*PluginController) Run

func (p *PluginController) Run() error

func (*PluginController) SyncImageStatus

func (p *PluginController) SyncImageStatus(target string, status string, msg string, img config.Image)

func (*PluginController) SyncTaskStatus

func (p *PluginController) SyncTaskStatus(status string, msg string, process int)

SyncTaskStatus 0 未开始 1 执行中 2 执行成功 3 执行失败

func (*PluginController) Validate

func (p *PluginController) Validate() error

type Runner

type Runner interface {
	GetName() string
	Run() error
}

Jump to

Keyboard shortcuts

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