Documentation ¶
Index ¶
- type LeasesController
- type PoolsController
- func (c *PoolsController) Create(w http.ResponseWriter, r *http.Request) error
- func (c *PoolsController) Delete(w http.ResponseWriter, r *http.Request) error
- func (c *PoolsController) Index(w http.ResponseWriter, r *http.Request) error
- func (c *PoolsController) Show(w http.ResponseWriter, r *http.Request) error
- func (c *PoolsController) Update(w http.ResponseWriter, r *http.Request) error
- type ReservationsController
- func (c *ReservationsController) Create(w http.ResponseWriter, r *http.Request) error
- func (c *ReservationsController) Delete(w http.ResponseWriter, r *http.Request) error
- func (c *ReservationsController) Index(w http.ResponseWriter, r *http.Request) error
- func (c *ReservationsController) Show(w http.ResponseWriter, r *http.Request) error
- func (c *ReservationsController) Update(w http.ResponseWriter, r *http.Request) error
- type SubnetsController
- func (c *SubnetsController) Create(w http.ResponseWriter, r *http.Request) error
- func (c *SubnetsController) Delete(w http.ResponseWriter, r *http.Request) error
- func (c *SubnetsController) Index(w http.ResponseWriter, r *http.Request) error
- func (c *SubnetsController) Show(w http.ResponseWriter, r *http.Request) error
- func (c *SubnetsController) Update(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeasesController ¶
type LeasesController struct {
// contains filtered or unexported fields
}
LeasesController provides methods for handling requests to the Leases API.
func NewLeasesController ¶
func NewLeasesController(router *mux.Router, ipam interfaces.Ipam) (*LeasesController, error)
NewLeasesController returns a newly configured LeasesController.
func (*LeasesController) Index ¶
func (c *LeasesController) Index(w http.ResponseWriter, r *http.Request) error
Index returns a list of Leases.
func (*LeasesController) Show ¶
func (c *LeasesController) Show(w http.ResponseWriter, r *http.Request) error
Show returns the requested Lease.
func (*LeasesController) Update ¶
func (c *LeasesController) Update(w http.ResponseWriter, r *http.Request) error
Update updates the requested Lease.
type PoolsController ¶
type PoolsController struct {
// contains filtered or unexported fields
}
PoolsController provides methods for handling requests to the Pools API.
func NewPoolsController ¶
func NewPoolsController(router *mux.Router, ipam interfaces.Ipam) (*PoolsController, error)
NewPoolsController returns a newly configured PoolsController.
func (*PoolsController) Create ¶
func (c *PoolsController) Create(w http.ResponseWriter, r *http.Request) error
Create creates a Pool.
func (*PoolsController) Delete ¶
func (c *PoolsController) Delete(w http.ResponseWriter, r *http.Request) error
Delete removes the requested Pool.
func (*PoolsController) Index ¶
func (c *PoolsController) Index(w http.ResponseWriter, r *http.Request) error
Index returns a list of Pools.
func (*PoolsController) Show ¶
func (c *PoolsController) Show(w http.ResponseWriter, r *http.Request) error
Show returns the requested Pool.
func (*PoolsController) Update ¶
func (c *PoolsController) Update(w http.ResponseWriter, r *http.Request) error
Update updates the requested Pool.
type ReservationsController ¶
type ReservationsController struct {
// contains filtered or unexported fields
}
ReservationsController provides methods for handling requests to the Reservations API.
func NewReservationsController ¶
func NewReservationsController(router *mux.Router, ipam interfaces.Ipam) (*ReservationsController, error)
NewReservationsController returns a newly configured ReservationsController.
func (*ReservationsController) Create ¶
func (c *ReservationsController) Create(w http.ResponseWriter, r *http.Request) error
Create creates a Reservation.
func (*ReservationsController) Delete ¶
func (c *ReservationsController) Delete(w http.ResponseWriter, r *http.Request) error
Delete removes the requested Reservation.
func (*ReservationsController) Index ¶
func (c *ReservationsController) Index(w http.ResponseWriter, r *http.Request) error
Index returns a list of Reservations.
func (*ReservationsController) Show ¶
func (c *ReservationsController) Show(w http.ResponseWriter, r *http.Request) error
Show returns the requested Reservation.
func (*ReservationsController) Update ¶
func (c *ReservationsController) Update(w http.ResponseWriter, r *http.Request) error
Update updates the requested Reservation.
type SubnetsController ¶
type SubnetsController struct {
// contains filtered or unexported fields
}
SubnetsController provides methods for handling requests to the Subnets API.
func NewSubnetsController ¶
func NewSubnetsController(router *mux.Router, ipam interfaces.Ipam) (*SubnetsController, error)
NewSubnetsController returns a newly configured SubnetsController.
func (*SubnetsController) Create ¶
func (c *SubnetsController) Create(w http.ResponseWriter, r *http.Request) error
Create creates a Subnet.
func (*SubnetsController) Delete ¶
func (c *SubnetsController) Delete(w http.ResponseWriter, r *http.Request) error
Delete removes the requested Subnet.
func (*SubnetsController) Index ¶
func (c *SubnetsController) Index(w http.ResponseWriter, r *http.Request) error
Index returns a list of Subnets.
func (*SubnetsController) Show ¶
func (c *SubnetsController) Show(w http.ResponseWriter, r *http.Request) error
Show returns the requested Subnet.
func (*SubnetsController) Update ¶
func (c *SubnetsController) Update(w http.ResponseWriter, r *http.Request) error
Update updates the requested Subnet.