plugin

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlaveAttributeIpResources = "ip-resources"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name   string         `json:"name,omitempty"`
	Type   Value_Type     `json:"type,omitempty"`
	Scalar Value_Scalar   `json:"scalar,omitempty"`
	Ranges []Value_Ranges `json:"ranges,omitempty"`
	Set    Value_Set      `json:"set,omitempty"`
	Text   Value_Text     `json:"text,omitempty"`
}

type HostAttributes

type HostAttributes struct {
	Ip         string       `json:"ip"`
	Attributes []*Attribute `json:"attributes"`
}

type HostPluginParameter

type HostPluginParameter struct {
	Ips       []string `json:"ips"`
	ClusterId string   `json:"clusterId"`
}

type InitPluginParameter

type InitPluginParameter struct {
	ConfPath string `json:"confPath"`
}

type Value_Ranges

type Value_Ranges struct {
	Begin int `json:"begin,omitempty"`
	End   int `json:"end,omitempty"`
}

type Value_Scalar

type Value_Scalar struct {
	Value float64 `json:"value,omitempty"`
}

type Value_Set

type Value_Set struct {
	Item []string `json:"item,omitempty"`
}

type Value_Text

type Value_Text struct {
	Text string `json:"text,omitempty"`
}

type Value_Type

type Value_Type uint8
const (
	ValueScalar Value_Type = 0
	ValueRanges Value_Type = 1
	ValueSet    Value_Type = 2
	ValueText   Value_Type = 3
)

Jump to

Keyboard shortcuts

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