nodeservice

package
v0.0.0-...-bd520fb Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOneRecord

func AddOneRecord(userInfo proto.ApulisHeader, content *nodemodule.CreateNodeOfBatchReq) error

func AnalyzeCSV

func AnalyzeCSV(batchID int, filePath string) error

func CreateBatchTask

func CreateBatchTask(userInfo proto.ApulisHeader) (int, error)

func CreateInstallScripts

func CreateInstallScripts(nodeInfo nodeentity.NodeBasicInfo, targetArch string) (string, error)

func DeleteEdgeNode

func DeleteEdgeNode(userInfo proto.ApulisHeader, req *nodemodule.DeleteEdgeNodeReq) error

delete edge node

func DeleteNodeGroup

func DeleteNodeGroup(userInfo proto.ApulisHeader, req *nodemodule.DeleteEdgeNodeReq) error

delete edge group

func DeleteNodeOfBatch

func DeleteNodeOfBatch(userInfo proto.ApulisHeader, req *nodemodule.DeleteNodeOfBatchReq) error

func GetInstallScripts

func GetInstallScripts(userInfo proto.ApulisHeader, req *nodemodule.GetInstallScriptReq) (string, error)

GetInstallScripts generate install script

func ListArchType

func ListArchType(userInfo proto.ApulisHeader, req *nodemodule.ListArchTypeReq) ([]string, error)

////// arch type ////////

func ListBatchList

func ListBatchList(userInfo *proto.ApulisHeader, batchID int, pageSize int, pageNum int) (*nodeentity.BatchTaskRecord, *[]nodeentity.NodeOfBatchInfo, error)

func ListEdgeNodeType

func ListEdgeNodeType(userInfo proto.ApulisHeader, req *nodemodule.ListEdgeNodeTypeReq) ([]string, error)

////// node type ////////

func UpdateBatch

func UpdateBatch(userInfo proto.ApulisHeader, id int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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