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) GetUriUrl() 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 PowerAPI
- func (*PowerAPI) ConfigURL() string
- func (pp *PowerAPI) Entry()
- func (pp *PowerAPI) Init(api types.ModuleAPIClient)
- func (*PowerAPI) Name() string
- func (*PowerAPI) NewConfig() proto.Message
- func (pp *PowerAPI) SetDiscoveryChan(c chan<- types.Event)
- func (pp *PowerAPI) SetMutationChan(c <-chan types.Event)
- func (pp *PowerAPI) Stop()
- func (pp *PowerAPI) UpdateConfig(cfg proto.Message) (e error)
- type Server
- func (*Server) Descriptor() ([]byte, []int)
- func (m *Server) GetApiBase() string
- func (m *Server) GetHttps() bool
- func (m *Server) GetPort() int32
- func (m *Server) GetServer() 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
Constants ¶
View Source
const (
PlatformString string = "powerapi"
)
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"` UriUrl string `protobuf:"bytes,5,opt,name=uri_url,json=uriUrl,proto3" json:"uri_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) 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 PowerAPI ¶
type PowerAPI struct {
// contains filtered or unexported fields
}
PowerAPI provides a power on/off interface
func (*PowerAPI) Init ¶
func (pp *PowerAPI) Init(api types.ModuleAPIClient)
Init is used to intialize an executable module prior to entrypoint
func (*PowerAPI) SetDiscoveryChan ¶
SetDiscoveryChan sets the current discovery channel this is generally done by the API
func (*PowerAPI) SetMutationChan ¶
SetMutationChan sets the current mutation channel this is generally done by the API
type Server ¶
type Server struct { Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` Https bool `protobuf:"varint,3,opt,name=https,proto3" json:"https,omitempty"` ApiBase string `protobuf:"bytes,4,opt,name=api_base,json=apiBase,proto3" json:"api_base,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Server) Descriptor ¶
func (*Server) GetApiBase ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.