api

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestBody

func GetRequestBody(g *gin.Context, obj any) error

func NewErrors

func NewErrors(msg string, kind string) errors.StatusError

Types

type InspectPlan

type InspectPlan struct {
	Clients *kube.KubernetesClient
	Ctx     context.Context
	Factory versionsv1alpha2.InspectPlanInformer
}

func (*InspectPlan) CreateInspectPlan

func (i *InspectPlan) CreateInspectPlan(gin *gin.Context)

CreateInspectPlan godoc @Summary Show an Inspect @Description CreateInspectPlan @Tags InspectPlan @Accept json @Produce json @Param InspectPlan body v1alpha2.InspectPlan true "Add InspectPlan" @Success 200 {object} v1alpha2.InspectPlan @Router /inspectplans [post]

func (*InspectPlan) DeleteInspectPlan

func (i *InspectPlan) DeleteInspectPlan(gin *gin.Context)

DeleteInspectPlan godoc @Summary Show an Inspect @Description DeleteInspectRule @Tags InspectPlan @Accept json @Produce json @Param name path string true "name" @Success 200 {object} v1alpha2.InspectPlan @Router /inspectplans/{name} [delete]

func (*InspectPlan) GetInspectPlan

func (i *InspectPlan) GetInspectPlan(gin *gin.Context)

GetInspectPlan godoc @Summary Show an Inspect @Description GetInspectPlan @Tags InspectPlan @Accept json @Produce json @Param name path string true "name" @Success 200 {object} v1alpha2.InspectPlan @Router /inspectplans/{name} [get]

func (*InspectPlan) ListInspectPlan

func (i *InspectPlan) ListInspectPlan(gin *gin.Context)

ListInspectPlan godoc @Summary Show an Inspect @Description ListInspectPlan @Tags InspectPlan @Accept json @Produce json @Param sortBy query string false "sortBy=createTime" @Param ascending query string false "ascending=true" @Param limit query int false "limit=10" @Param page query int false "page=1" @Param labelSelector query string false "labelSelector=app=nginx" @Success 200 {array} v1alpha2.InspectPlan @Router /inspectplans [get]

func (*InspectPlan) PatchInspectPlan

func (i *InspectPlan) PatchInspectPlan(g *gin.Context)

PatchInspectPlan godoc @Summary Show an Inspect @Description PatchInspectPlan @Tags InspectPlan @Accept json @Produce json @Param name path string true "name" @Param v1alpha2.InspectPlan body v1alpha2.InspectPlan true "patch InspectPlan" @Success 200 {object} v1alpha2.InspectPlan @Router /inspectplans/{name} [patch]

func (*InspectPlan) PatchInspectPlanStatus

func (i *InspectPlan) PatchInspectPlanStatus(g *gin.Context)

PatchInspectPlanStatus godoc @Summary Show an Inspect @Description PatchInspectPlanStatus @Tags InspectPlan @Accept json @Produce json @Param name path string true "name" @Param status body v1alpha2.InspectPlanStatus true "{status:{lastTaskStatus:‘’}}" @Success 200 {object} v1alpha2.InspectPlan @Router /inspectplans/{name}/status [patch]

func (*InspectPlan) UpdateInspectPlan

func (i *InspectPlan) UpdateInspectPlan(g *gin.Context)

UpdateInspectPlan godoc @Summary Show an Inspect @Description UpdateInspectRule @Tags InspectPlan @Accept json @Produce json @Param v1alpha2.InspectPlan body v1alpha2.InspectPlan true "update InspectPlan" @Success 200 {object} v1alpha2.InspectPlan @Router /inspectplans [put]

type InspectResult

type InspectResult struct {
	Clients *kube.KubernetesClient
	Ctx     context.Context
	Factory versionsv1alpha2.InspectResultInformer
}

func (*InspectResult) GetInspectResult

func (i *InspectResult) GetInspectResult(gin *gin.Context)

GetInspectResult godoc @Summary Show an Inspect @Description GetInspectResult @Tags InspectResult @Accept json @Produce json @Param name path string true "name" @Param type query string false "type" @Success 200 {object} v1alpha2.InspectResult @Router /inspectresults/{name} [get]

func (*InspectResult) ListInspectResult

func (i *InspectResult) ListInspectResult(gin *gin.Context)

ListInspectResult godoc @Summary Show an Inspect @Description get ListInspectResult @Tags InspectResult @Accept json @Produce json @Param sortBy query string false "sortBy=createTime" @Param ascending query string false "ascending=true" @Param limit query int false "limit=10" @Param page query int false "page=1" @Param labelSelector query string false "labelSelector=app=nginx" @Success 200 {array} v1alpha2.InspectResult @Router /inspectresults [get]

type InspectRule

type InspectRule struct {
	Clients *kube.KubernetesClient
	Ctx     context.Context
	Factory versionsv1alpha2.InspectRuleInformer
}

func (*InspectRule) CreateInspectRule

func (i *InspectRule) CreateInspectRule(gin *gin.Context)

CreateInspectRule godoc @Summary Show an Inspect @Description CreateInspectRule @Tags InspectRule @Accept json @Produce json @Param InspectRule body v1alpha2.InspectRule true "Add InspectRule" @Success 200 {object} v1alpha2.InspectRule @Router /inspectrules [post]

func (*InspectRule) DeleteInspectRule

func (i *InspectRule) DeleteInspectRule(gin *gin.Context)

DeleteInspectRule godoc @Summary Show an Inspect @Description DeleteInspectRule @Tags InspectRule @Accept json @Produce json @Param name path string true "name" @Success 200 {object} v1alpha2.InspectRule @Router /inspectrules/{name} [delete]

func (*InspectRule) GetInspectRule

func (i *InspectRule) GetInspectRule(gin *gin.Context)

GetInspectRule godoc @Summary Show an Inspect @Description GetInspectRule @Tags InspectRule @Accept json @Produce json @Param name path string true "name" @Success 200 {object} v1alpha2.InspectRule @Router /inspectrules/{name} [get]

func (*InspectRule) ListInspectRule

func (i *InspectRule) ListInspectRule(g *gin.Context)

ListInspectRule godoc @Summary Show an Inspect @Description ListInspectRule @Tags InspectRule @Accept json @Produce json @Param sortBy query string false "sortBy=createTime" @Param ascending query string false "ascending=true" @Param limit query int false "limit=10" @Param page query int false "page=1" @Param labelSelector query string false "labelSelector=app=nginx" @Success 200 {array} v1alpha2.InspectRule @Router /inspectrules [get]

func (*InspectRule) UpdateInspectRule

func (i *InspectRule) UpdateInspectRule(gin *gin.Context)

UpdateInspectRule godoc @Summary Show an Inspect @Description UpdateInspectRule @Tags InspectRule @Accept json @Produce json @Param v1alpha2.InspectRule body v1alpha2.InspectRule true "Add InspectRule" @Success 200 {object} v1alpha2.InspectRule @Router /inspectrules [put]

func (*InspectRule) Validate

func (i *InspectRule) Validate(gin *gin.Context)

type InspectTask

type InspectTask struct {
	Clients *kube.KubernetesClient
	Ctx     context.Context
	Factory versionsv1alpha2.InspectTaskInformer
}

func (*InspectTask) DeleteInspectTask

func (i *InspectTask) DeleteInspectTask(gin *gin.Context)

DeleteInspectTask godoc @Summary Show an Inspect @Description DeleteInspectTask @Tags InspectTask @Accept json @Produce json @Param name path string true "name" @Success 200 {object} v1alpha2.InspectTask @Router /inspecttasks/{name} [delete]

func (*InspectTask) GetInspectTask

func (i *InspectTask) GetInspectTask(gin *gin.Context)

GetInspectTask godoc @Summary Show an Inspect @Description ListInspectTask @Tags InspectTask @Accept json @Produce json @Param name path string true "name" @Success 200 {object} v1alpha2.InspectTask @Router /inspecttasks/{name} [get]

func (*InspectTask) ListInspectTask

func (i *InspectTask) ListInspectTask(gin *gin.Context)

ListInspectTask godoc @Summary Show an Inspect @Description ListInspectTask @Tags InspectTask @Accept json @Produce json @Param sortBy query string false "sortBy=createTime" @Param ascending query string false "ascending=true" @Param limit query int false "limit=10" @Param page query int false "page=1" @Param labelSelector query string false "labelSelector=app=nginx" @Success 200 {array} v1alpha2.InspectTask @Router /inspecttasks [get]

Jump to

Keyboard shortcuts

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