actionagentsvc

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 13 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 ActionAgentSvc

type ActionAgentSvc struct {
	// contains filtered or unexported fields
}

func New

func New(dbClient *dbclient.Client, bdl *bundle.Bundle, js jsonstore.JsonStore, etcdctl *etcd.Store) *ActionAgentSvc

func (*ActionAgentSvc) Ensure

func (s *ActionAgentSvc) Ensure(clusterInfo apistructs.ClusterInfoData, agentImage string, agentMD5 string) error

Ensure 保证 agent 可用: 1. 当集群类型为 k8s 时,通过 initContainer 进行下载 2. 当集群类型为非 k8s 时,通过现有路径调用 soldier 进行下载

type AgentAccessible

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

Jump to

Keyboard shortcuts

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