Documentation ¶
Index ¶
- type API
- func (api *API) CreateNicConfig() http.HandlerFunc
- func (api *API) DeleteAllNics() http.HandlerFunc
- func (api *API) DeleteNic() http.HandlerFunc
- func (api *API) GetConfigHandler() http.HandlerFunc
- func (api *API) GetNic() http.HandlerFunc
- func (api *API) GetNics() http.HandlerFunc
- func (api *API) RegisterUITemplate(r *mux.Router) error
- func (a *API) Start()
- func (api *API) UpdateNicConfig() http.HandlerFunc
- type ImageUploader
- type ServerItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) CreateNicConfig ¶
func (api *API) CreateNicConfig() http.HandlerFunc
func (*API) DeleteAllNics ¶
func (api *API) DeleteAllNics() http.HandlerFunc
func (*API) DeleteNic ¶
func (api *API) DeleteNic() http.HandlerFunc
func (*API) GetConfigHandler ¶
func (api *API) GetConfigHandler() http.HandlerFunc
func (*API) GetNic ¶
func (api *API) GetNic() http.HandlerFunc
func (*API) GetNics ¶
func (api *API) GetNics() http.HandlerFunc
func (*API) UpdateNicConfig ¶
func (api *API) UpdateNicConfig() http.HandlerFunc
type ImageUploader ¶
func (*ImageUploader) UploadHandler ¶
func (iu *ImageUploader) UploadHandler() http.HandlerFunc
type ServerItem ¶
type ServerItem struct { Ip string `yaml:"ip" json:"ip"` Hostname string `yaml:"hostname" json:"hostname"` MacAddress string `json:"mac_address"` Gateway string `yaml:"gateway" json:"gateway"` Netmask string `yaml:"netmask" json:"netmask"` }
func (ServerItem) Validate ¶
func (s ServerItem) Validate() error
Click to show internal directories.
Click to hide internal directories.