Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx *fiber.Ctx) error
Create @Summary Create application @Tags applications @ID postApplication @Param namespace path string true "Namespace name" @Param cluster body Application true "request" @Success 200 {object} Application @Failure 404 {object} string @Failure 500 {object} string @Response default {object} Application @Router /namespaces/{namespace}/applications [post]
func Delete ¶
func Delete(ctx *fiber.Ctx) error
Delete godoc @Summary Delete an application @Tags applications @ID deleteApplication @Param namespace path string true "Namespace name" @Param name path string true "Application name" @Success 204 {object} string @Failure 400 {object} string @Failure 404 {object} string @Failure 500 {object} string @Router /namespaces/{namespace}/applications/{name} [delete]
func Get ¶
func Get(ctx *fiber.Ctx) error
Get @Summary Get application @Tags applications @ID getApplication @Param namespace path string true "Namespace name" @Param name path string true "Application name" @Success 200 {object} Application @Failure 404 {object} string @Failure 500 {object} string @Response default {object} Application @Router /namespaces/{namespace}/applications/{name} [get]
func List ¶
func List(ctx *fiber.Ctx) error
List @Tags applications @ID listApplications @Param namespace path string true "Namespace name" @Param query query types.ListQuery false "query" @Success 200 {object} ListResponse @Failure 404 {object} string @Failure 500 {object} string @Response default {object} ListResponse @Router /namespaces/{namespace}/applications [get]
func RegisterRoutes ¶
func RegisterRoutes(r fiber.Router)
func Update ¶
func Update(ctx *fiber.Ctx) error
Update @Summary Update application @Tags applications @ID patchApplication @Param namespace path string true "Namespace name" @Param name path string true "Application name" @Param cluster body Application true "request" @Success 200 {object} Application @Failure 404 {object} string @Failure 500 {object} string @Response default {object} Application @Router /namespaces/{namespace}/applications/{name} [patch]
Types ¶
type Application ¶
type Component ¶
type Component struct { Name string `json:"name"` Type string `json:"type"` ExternalRevision string `json:"externalRevision,omitempty"` Properties map[string]interface{} `json:"properties,omitempty"` Traits []*ComponentTrait `json:"traits,omitempty"` Scopes map[string]string `json:"scopes,omitempty"` }
type ComponentTrait ¶
type ListResponse ¶
type ListResponse struct { Items []*Application `json:"items,omitempty"` Total int `json:"total"` }