node

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Service services.NodeService
}

func (*Controller) DeleteBy

func (instance *Controller) DeleteBy(id string) mvc.Response

删除节点

func (*Controller) DeletePipelineBy

func (instance *Controller) DeletePipelineBy(id string, ctx iris.Context) mvc.Response

解绑流水线

func (*Controller) Get

func (instance *Controller) Get(ctx iris.Context) mvc.Response

获取节点列表

func (*Controller) GetPipelines

func (instance *Controller) GetPipelines(ctx iris.Context) mvc.Response

获取节点关联的流水线

func (*Controller) Post

func (instance *Controller) Post(ctx iris.Context) mvc.Response

创建节点

func (*Controller) PostPipeline

func (instance *Controller) PostPipeline(ctx iris.Context) mvc.Response

关联流水线

func (*Controller) PutBy

func (instance *Controller) PutBy(id string, ctx iris.Context) mvc.Response

修改节点信息

type CreateRequest

type CreateRequest struct {
	Name   string `json:"name" validate:"required"`
	Remark string `json:"remark"`
}

type UpdateRequest

type UpdateRequest struct {
	Name   string `json:"name" validate:"required"`
	Remark string `json:"remark"`
}

Jump to

Keyboard shortcuts

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