Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- 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 PXE
- func (*PXE) ConfigURL() string
- func (px *PXE) Entry()
- func (px *PXE) Init(api types.ModuleAPIClient)
- func (*PXE) Name() string
- func (*PXE) NewConfig() proto.Message
- func (px *PXE) NodeCreate(n types.Node) (e error)
- func (px *PXE) NodeDelete(qb nodeQueryBy, q string)
- func (px *PXE) NodeGet(qb nodeQueryBy, q string) (n types.Node)
- func (px *PXE) SetDiscoveryChan(c chan<- types.Event)
- func (px *PXE) SetMutationChan(c <-chan types.Event)
- func (px *PXE) StartDHCP(iface string, ip net.IP)
- func (px *PXE) StartTFTP(ip net.IP)
- func (px *PXE) Stop()
- func (px *PXE) UpdateConfig(cfg proto.Message) (e error)
Constants ¶
View Source
const ( DHCPPacketBuffer int = 1500 DHCPPXEFile string = "pxelinux.0" // this should probably be configurable )
View Source
const ( PXEStateURL = "type.googleapis.com/PXE.Client/State" SrvStateURL = "/Services/pxe/State" )
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
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 PXE ¶
type PXE struct {
// contains filtered or unexported fields
}
PXE provides PXE-boot capabilities
func (*PXE) Init ¶
func (px *PXE) Init(api types.ModuleAPIClient)
Init is used to intialize an executable module prior to entrypoint
func (*PXE) NodeCreate ¶
NodeCreate creates a new node in our node pool -- concurrency safe
func (*PXE) NodeDelete ¶
NodeDelete deletes a node that we know about -- cuncurrency safe
func (*PXE) SetDiscoveryChan ¶
SetDiscoveryChan sets the current discovery channel this is generally done by the API
func (*PXE) SetMutationChan ¶
SetMutationChan sets the current mutation channel this is generally done by the API
Click to show internal directories.
Click to hide internal directories.