actionagent

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunScript

func RunScript(clusterInfo apistructs.ClusterInfoData, scriptName string, params map[string]string) error

Types

type AgentAccessible

type AgentAccessible struct {
	Image string `json:"image"`
	MD5   string `json:"md5"`
	OK    bool   `json:"ok"`
}

type Interface

type Interface interface {
	// Ensure ensures that the agent is available:
	// 1. When the cluster type is k8s, download through initContainer
	// 2. When the cluster type is non-k8s, call the solderer through the existing path to download
	Ensure(clusterInfo apistructs.ClusterInfoData, agentImage string, agentMD5 string) error
}

Jump to

Keyboard shortcuts

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