handler

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: BSD-4-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Uniquekey string
	Namespace string
	Image     string
	// contains filtered or unexported fields
}

func (*Handler) Create

func (handler *Handler) Create(gc *gin.Context)

func (*Handler) Delete

func (handler *Handler) Delete(gc *gin.Context)

func (*Handler) GetAll

func (handler *Handler) GetAll(gc *gin.Context)

func (*Handler) GetOne

func (handler *Handler) GetOne(gc *gin.Context)

func (*Handler) Init

func (handler *Handler) Init()

func (*Handler) Update

func (handler *Handler) Update(gc *gin.Context)

type IPort

type IPort struct {
	Protocol string `json:"protocol"`
	Internal uint16 `json:"internal"`
	External uint16 `json:"external"`
}

type IPvc

type IPvc struct {
	Id    string `json:"id"`
	Mount string `json:"mount"`
	Size  uint16 `json:"size"`
}

type IResponse

type IResponse struct {
	Id     string  `json:"id"`
	Name   string  `json:"name"`
	Status string  `json:"status"`
	Ports  []IPort `json:"ports"`
	Pvcs   []IPvc  `json:"pvcs"`
}

type OPort

type OPort struct {
	Protocol string `json:"protocol"`
	Internal uint16 `json:"internal"`
}

type Request

type Request struct {
	Cpu   uint16  `json:"cpu"`
	Mem   uint16  `json:"mem"`
	Ports []OPort `json:"ports"`
	Pvcs  []IPvc  `json:"pvcs"`
}

type Response

type Response []IResponse
type VolumeLink struct {
	Name  string
	Mount string
	Claim string
}

type VolumeLinkGroup

type VolumeLinkGroup []VolumeLink
type VolumeLinks []VolumeLinkGroup

Jump to

Keyboard shortcuts

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