settings

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddNoticeReceiversAction

type AddNoticeReceiversAction actions.Action

func (*AddNoticeReceiversAction) Run

func (this *AddNoticeReceiversAction) Run(params struct {
	AgentId string
	Level   notices.NoticeLevel
})

添加通知接收人

func (*AddNoticeReceiversAction) RunPost

func (this *AddNoticeReceiversAction) RunPost(params struct {
	AgentId string
	Level   notices.NoticeLevel
	On      bool
	Name    string
	MediaId string
	User    string
	Must    actions.Must
})

提交保存

type DeleteNoticeReceiversAction

type DeleteNoticeReceiversAction actions.Action

func (*DeleteNoticeReceiversAction) Run

func (this *DeleteNoticeReceiversAction) Run(params struct {
	AgentId    string
	Level      notices.NoticeLevel
	ReceiverId string
})

删除接收人

type Helper

type Helper struct {
}

func (*Helper) BeforeAction

func (this *Helper) BeforeAction(actionWrapper actions.ActionWrapper)

type IndexAction

type IndexAction actions.Action

func (*IndexAction) Run

func (this *IndexAction) Run(params struct {
	AgentId string
})

设置首页

type InstallAction

type InstallAction actions.Action

func (*InstallAction) Run

func (this *InstallAction) Run(params struct {
	AgentId string
})

安装部署

type NoticeReceiversAction

type NoticeReceiversAction actions.Action

func (*NoticeReceiversAction) Run

func (this *NoticeReceiversAction) Run(params struct {
	AgentId string
})

通知接收人设置

type OffAction

type OffAction actions.Action

func (*OffAction) Run

func (this *OffAction) Run(params struct {
	AgentId string
})

关闭Agent

type OnAction

type OnAction actions.Action

func (*OnAction) Run

func (this *OnAction) Run(params struct {
	AgentId string
})

启用Agent

type UpdateAction

type UpdateAction actions.Action

func (*UpdateAction) Run

func (this *UpdateAction) Run(params struct {
	AgentId string
})

修改设置

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	AgentId             string
	Name                string
	Host                string
	GroupId             string
	AllowAllIP          bool
	IPs                 []string `alias:"ips"`
	On                  bool
	Key                 string
	CheckDisconnections bool
	AutoUpdates         bool
	Must                *actions.Must
})

提交保存

Jump to

Keyboard shortcuts

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