Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Create(c *gin.Context)
- func (h *Handler) Delete(c *gin.Context)
- func (h *Handler) DeleteResource(c *gin.Context)
- func (h *Handler) Engine() *gin.Engine
- func (h *Handler) Get(c *gin.Context)
- func (h *Handler) GetDefaults(c *gin.Context)
- func (h *Handler) GetStatus(c *gin.Context)
- func (h *Handler) GetStatuses(c *gin.Context)
- func (h *Handler) HealthCheck(c *gin.Context)
- func (h *Handler) List(c *gin.Context)
- func (h *Handler) ListServices(c *gin.Context)
- func (h *Handler) Reset(c *gin.Context)
- func (h *Handler) Update(c *gin.Context)
- func (h *Handler) Version(c *gin.Context)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler actually handle http requests. It use a router to map uri to HandlerFunc
func NewHandler ¶
NewHandler create a Handler using defined routes. It takes a client as argument in order to be pass to the handler and be accessible to the HandlerFunc Typically in a CRUD API, the client manage connections to a storage system.
func (*Handler) DeleteResource ¶ added in v0.5.3
Delete handle the namespace deletion.
func (*Handler) GetDefaults ¶
GetDefaults return default for an inventory $ curl -xGET defaults/
func (*Handler) GetStatus ¶ added in v0.1.3
GetStatus returns the namespace status (ready or not) for a given namespace
func (*Handler) GetStatuses ¶ added in v0.1.3
GetStatuses returns an array of namespaces and their associated status
func (*Handler) HealthCheck ¶ added in v1.1.0
func (*Handler) ListServices ¶
ListServices returns the list of exposed services (NodePort and ingress configuration) of a given inventory
func (*Handler) Reset ¶ added in v0.2.1
Reset reset a inventory to default and apply changes into kubernetes