Documentation ¶
Index ¶
- Constants
- func AddInstancePoolItem(dataDir, host, instanceName, instanceUid string) (int, error)
- func CheckIPAddressType(ip string) bool
- func EncodeMD5(value string) string
- func GenerateToken(username, password string) (string, error)
- func GetInstancePoolItem(dataDir, host, instanceName, instanceUid string) (int, error)
- func RemoteSshCommand(host string, user string, password string, port uint16, command string) (result string, err error)
- func RemoveInstancePoolItem(dataDir, host, instanceName, instanceUid string) (int, error)
- func RenderMermaidFlowChart(obj MermaidFlow) (string, error)
- func RunCommand(comm string)
- func Setup()
- func Tailf(ctx context.Context, path string) (<-chan string, error)
- type CSVWriter
- type Claims
- type GPUInfo
- type MachineInfo
- type MermaidFlow
- type MermaidFlowLink
- type MermaidFlowLinkEndpoint
- type MermaidFlowNode
- type MermaidFlowSubGraph
Constants ¶
View Source
const ( InstancePoolActionAdd = "add" InstancePoolActionDelete = "delete" )
View Source
const ( TopologyFormatCSV = "csv" TopologyFormatMermaid = "mermaid" MermaidFlowOrientationTB = "TB" MermaidFlowOrientationLR = "LR" MermaidFlowShapeRectangle = "rectangle" MermaidFlowShapeRoundEdges = "roundEdges" MermaidFlowShapeStadium = "stadium" MermaidFlowShapeSubroutine = "subroutine" MermaidFlowShapeCylindrical = "cylindrical" MermaidFlowShapeCircle = "circle" MermaidFlowShapeAsymmetric = "asymmetric" MermaidFlowShapeRhombus = "rhombus" MermaidFlowShapeHexagon = "hexagon" MermaidFlowShapeParallelogram = "parallelogram" MermaidFlowShapeParallelogramAlt = "parallelogramAlt" MermaidFlowShapeTrapezoid = "trapezoid" MermaidFlowShapeTrapezoidAlt = "trapezoidAlt" MermaidFlowLinkTypeNormal = "normal" MermaidFlowLinkTypeThick = "thick" MermaidFlowLinkTypeDotted = "dotted" MermaidFlowArrowRound = "round" MermaidFlowArrowTriangle = "triangle" MermaidFlowArrowFork = "fork" )
Variables ¶
This section is empty.
Functions ¶
func AddInstancePoolItem ¶
func CheckIPAddressType ¶
func GenerateToken ¶
GenerateToken generate tokens used for auth
func GetInstancePoolItem ¶
func RemoteSshCommand ¶
func RemoveInstancePoolItem ¶
func RenderMermaidFlowChart ¶
func RenderMermaidFlowChart(obj MermaidFlow) (string, error)
func RunCommand ¶
func RunCommand(comm string)
Types ¶
type CSVWriter ¶
type CSVWriter struct {
// contains filtered or unexported fields
}
func NewCSVWriter ¶
type Claims ¶
type MachineInfo ¶
func GetMachineInfo ¶
type MermaidFlow ¶
type MermaidFlow struct { Orientation string Nodes map[string]MermaidFlowNode Links []MermaidFlowLink SubGraphs map[string]MermaidFlowSubGraph }
type MermaidFlowLink ¶
type MermaidFlowLink struct { Src MermaidFlowLinkEndpoint Dst MermaidFlowLinkEndpoint LinkType string LinkText string }
type MermaidFlowLinkEndpoint ¶
type MermaidFlowNode ¶
type MermaidFlowSubGraph ¶
type MermaidFlowSubGraph struct { Nodes map[string]MermaidFlowNode Links []MermaidFlowLink }
Click to show internal directories.
Click to hide internal directories.