Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetArpDeadline() string
- func (m *Config) GetDhcpRetry() uint32
- func (m *Config) GetIpUrl() string
- func (m *Config) GetMacUrl() string
- func (m *Config) GetNmUrl() string
- func (m *Config) GetSrvIfaceUrl() string
- func (m *Config) GetSrvIpUrl() string
- func (m *Config) GetSubnetUrl() string
- func (m *Config) GetTftpDir() 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 PiPXE
- func (*PiPXE) ConfigURL() string
- func (px *PiPXE) Entry()
- func (px *PiPXE) Init(api types.ModuleAPIClient)
- func (*PiPXE) Name() string
- func (*PiPXE) NewConfig() proto.Message
- func (px *PiPXE) NodeCreate(n types.Node) (e error)
- func (px *PiPXE) NodeDelete(qb nodeQueryBy, q string)
- func (px *PiPXE) NodeGet(qb nodeQueryBy, q string) (n types.Node)
- func (px *PiPXE) SetDiscoveryChan(c chan<- types.Event)
- func (px *PiPXE) SetMutationChan(c <-chan types.Event)
- func (px *PiPXE) StartDHCP(iface string, ip net.IP)
- func (px *PiPXE) StartTFTP(ip net.IP)
- func (px *PiPXE) Stop()
- func (px *PiPXE) UpdateConfig(cfg proto.Message) (e error)
Constants ¶
View Source
const ( PxeURL = "type.googleapis.com/RPi3.Pi/Pxe" SrvStateURL = "/Services/pipxe/State" MACVendor = "b8:27:eb" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SrvIfaceUrl string `protobuf:"bytes,1,opt,name=srv_iface_url,json=srvIfaceUrl,proto3" json:"srv_iface_url,omitempty"` SrvIpUrl string `protobuf:"bytes,2,opt,name=srv_ip_url,json=srvIpUrl,proto3" json:"srv_ip_url,omitempty"` IpUrl string `protobuf:"bytes,3,opt,name=ip_url,json=ipUrl,proto3" json:"ip_url,omitempty"` NmUrl string `protobuf:"bytes,4,opt,name=nm_url,json=nmUrl,proto3" json:"nm_url,omitempty"` MacUrl string `protobuf:"bytes,5,opt,name=mac_url,json=macUrl,proto3" json:"mac_url,omitempty"` SubnetUrl string `protobuf:"bytes,6,opt,name=subnet_url,json=subnetUrl,proto3" json:"subnet_url,omitempty"` TftpDir string `protobuf:"bytes,7,opt,name=tftp_dir,json=tftpDir,proto3" json:"tftp_dir,omitempty"` ArpDeadline string `protobuf:"bytes,8,opt,name=arp_deadline,json=arpDeadline,proto3" json:"arp_deadline,omitempty"` DhcpRetry uint32 `protobuf:"varint,9,opt,name=dhcp_retry,json=dhcpRetry,proto3" json:"dhcp_retry,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetArpDeadline ¶
func (*Config) GetDhcpRetry ¶
func (*Config) GetSrvIfaceUrl ¶
func (*Config) GetSrvIpUrl ¶
func (*Config) GetSubnetUrl ¶
func (*Config) GetTftpDir ¶
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 PiPXE ¶
type PiPXE struct {
// contains filtered or unexported fields
}
PiPXE provides PXE-boot capabilities for Raspberry Pis
func (*PiPXE) Init ¶
func (px *PiPXE) Init(api types.ModuleAPIClient)
Init is used to intialize an executable module prior to entrypoint
func (*PiPXE) NodeCreate ¶
NodeCreate creates a new node in our node pool -- concurrency safe
func (*PiPXE) NodeDelete ¶
NodeDelete deletes a node that we know about -- cuncurrency safe
func (*PiPXE) SetDiscoveryChan ¶
SetDiscoveryChan sets the current discovery channel this is generally done by the API
func (*PiPXE) SetMutationChan ¶
SetMutationChan sets the current mutation channel this is generally done by the API
Click to show internal directories.
Click to hide internal directories.