application

package
v0.0.0-...-a4c4421 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

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 Application struct {
	Name         string    `json:"name"`
	Description  string    `json:"description,omitempty"`
	CreationTime time.Time `json:"creationTime,omitempty"`

	Components []*Component `json:"components"`
}

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 ComponentTrait struct {
	Properties map[string]interface{} `json:"properties,omitempty"`
	Type       string                 `json:"type"`
}

type ListResponse

type ListResponse struct {
	Items []*Application `json:"items,omitempty"`
	Total int            `json:"total"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL