agent

package
v0.0.0-...-0a5baa5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEnv

func AddEnv(opts *commandutil.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func DeleteEnv

func DeleteEnv(opts *commandutil.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func InitAgent

func InitAgent(opts *commandutil.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func ReSyncAgent

func ReSyncAgent(opts *commandutil.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func RestartAgent

func RestartAgent(opts *commandutil.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func UpgradeAgent

func UpgradeAgent(opts *commandutil.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

以前用于重新部署实例,现在仅用于升级Agent

Types

type ClusterInfo

type ClusterInfo struct {
	Version        string `json:"version"`
	Pods           int    `json:"pods"`
	Namespaces     int    `json:"namespaces"`
	Nodes          int    `json:"nodes"`
	ClusterId      string `json:"clusterId"`
	AgentPodName   string `json:"agentPodName"`
	AgentNamespace string `json:"agentNamespace"`
}

Jump to

Keyboard shortcuts

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