Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetNameUrl() string
- func (m *Config) GetPollingInterval() string
- func (m *Config) GetServerUrl() string
- func (m *Config) GetServers() map[string]*Server
- func (m *Config) GetUuidUrl() string
- func (m *Config) Marshal() (dAtA []byte, err error)
- func (m *Config) MarshalTo(dAtA []byte) (int, error)
- func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) Size() (n int)
- func (m *Config) String() string
- func (m *Config) Unmarshal(dAtA []byte) error
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (*Config) XXX_MessageName() string
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type Server
- func (*Server) Descriptor() ([]byte, []int)
- func (m *Server) GetIp() string
- func (m *Server) GetName() string
- func (m *Server) GetPort() int32
- func (m *Server) GetSocketPath() string
- func (m *Server) GetTlsCACert() string
- func (m *Server) GetTlsCert() string
- func (m *Server) GetTlsKey() string
- func (m *Server) Marshal() (dAtA []byte, err error)
- func (m *Server) MarshalTo(dAtA []byte) (int, error)
- func (m *Server) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Server) ProtoMessage()
- func (m *Server) Reset()
- func (m *Server) Size() (n int)
- func (m *Server) String() string
- func (m *Server) Unmarshal(dAtA []byte) error
- func (m *Server) XXX_DiscardUnknown()
- func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Server) XXX_Merge(src proto.Message)
- func (*Server) XXX_MessageName() string
- func (m *Server) XXX_Size() int
- func (m *Server) XXX_Unmarshal(b []byte) error
- type Virt
- func (*Virt) ConfigURL() string
- func (v *Virt) Entry()
- func (v *Virt) Init(api types.ModuleAPIClient)
- func (*Virt) Name() string
- func (*Virt) NewConfig() proto.Message
- func (v *Virt) SetDiscoveryChan(c chan<- types.Event)
- func (v *Virt) SetMutationChan(c <-chan types.Event)
- func (v *Virt) Stop()
- func (v *Virt) UpdateConfig(cfg proto.Message) error
Constants ¶
View Source
const PlatformString string = "libvirt"
PlatformString denotes what node platform this modules supports
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Servers map[string]*Server `` /* 155-byte string literal not displayed */ PollingInterval string `protobuf:"bytes,2,opt,name=polling_interval,json=pollingInterval,proto3" json:"polling_interval,omitempty"` NameUrl string `protobuf:"bytes,3,opt,name=name_url,json=nameUrl,proto3" json:"name_url,omitempty"` ServerUrl string `protobuf:"bytes,4,opt,name=server_url,json=serverUrl,proto3" json:"server_url,omitempty"` UuidUrl string `protobuf:"bytes,5,opt,name=uuid_url,json=uuidUrl,proto3" json:"uuid_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetNameUrl ¶
func (*Config) GetPollingInterval ¶
func (*Config) GetServerUrl ¶
func (*Config) GetServers ¶
func (*Config) GetUuidUrl ¶
func (*Config) MarshalToSizedBuffer ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_MessageName ¶
func (*Config) XXX_Unmarshal ¶
type Server ¶
type Server struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` TlsKey string `protobuf:"bytes,4,opt,name=tlsKey,proto3" json:"tlsKey,omitempty"` TlsCert string `protobuf:"bytes,5,opt,name=tlsCert,proto3" json:"tlsCert,omitempty"` TlsCACert string `protobuf:"bytes,6,opt,name=tlsCACert,proto3" json:"tlsCACert,omitempty"` SocketPath string `protobuf:"bytes,7,opt,name=socketPath,proto3" json:"socketPath,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Server) Descriptor ¶
func (*Server) GetSocketPath ¶
func (*Server) GetTlsCACert ¶
func (*Server) GetTlsCert ¶
func (*Server) MarshalToSizedBuffer ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) XXX_DiscardUnknown ¶
func (m *Server) XXX_DiscardUnknown()
func (*Server) XXX_Marshal ¶
func (*Server) XXX_MessageName ¶
func (*Server) XXX_Unmarshal ¶
type Virt ¶
type Virt struct {
// contains filtered or unexported fields
}
Virt provides a power on/off interface to the LibVirt interface
func (*Virt) Init ¶
func (v *Virt) Init(api types.ModuleAPIClient)
Init is used to intialize an executable module prior to entrypoint
func (*Virt) SetDiscoveryChan ¶
SetDiscoveryChan sets the current discovery channel this is generally done by the API
func (*Virt) SetMutationChan ¶
SetMutationChan sets the current mutation channel this is generally done by the API
Click to show internal directories.
Click to hide internal directories.