policies

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAllUsingPolicy

func FindAllUsingPolicy(policyId string) []maps.Map

Types

type AddAction

type AddAction actions.Action

func (*AddAction) RunGet

func (this *AddAction) RunGet(params struct{})

添加日志策略

func (*AddAction) RunPost

func (this *AddAction) RunPost(params struct {
	Name            string
	StorageFormat   string
	StorageTemplate string
	StorageType     string

	// file
	FilePath string

	// es
	EsEndpoint    string
	EsIndex       string
	EsMappingType string

	// mysql
	MysqlHost     string
	MysqlPort     int
	MysqlUsername string
	MysqlPassword string
	MysqlDatabase string
	MysqlTable    string
	MysqlLogField string

	// tcp
	TcpNetwork string
	TcpAddr    string

	// command
	CommandCommand string
	CommandArgs    string
	CommandDir     string

	On bool

	Must *actions.Must
})

保存提交

type DeleteAction

type DeleteAction actions.Action

func (*DeleteAction) RunPost

func (this *DeleteAction) RunPost(params struct {
	PolicyId string
})

删除策略

type Helper

type Helper struct {
}

func (*Helper) BeforeAction

func (this *Helper) BeforeAction(action *actions.ActionObject)

相关Helper

type IndexAction

type IndexAction actions.Action

func (*IndexAction) RunGet

func (this *IndexAction) RunGet(params struct{})

日志策略

type PolicyAction

type PolicyAction actions.Action

func (*PolicyAction) RunGet

func (this *PolicyAction) RunGet(params struct {
	PolicyId string
})

策略详情

type UpdateAction

type UpdateAction actions.Action

func (*UpdateAction) RunGet

func (this *UpdateAction) RunGet(params struct {
	PolicyId string
})

修改策略

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	PolicyId string

	Name            string
	StorageFormat   string
	StorageTemplate string
	StorageType     string

	// file
	FilePath string

	// es
	EsEndpoint    string
	EsIndex       string
	EsMappingType string

	// mysql
	MysqlHost     string
	MysqlPort     int
	MysqlUsername string
	MysqlPassword string
	MysqlDatabase string
	MysqlTable    string
	MysqlLogField string

	// tcp
	TcpNetwork string
	TcpAddr    string

	// command
	CommandCommand string
	CommandArgs    string
	CommandDir     string

	On bool

	Must *actions.Must
})

保存提交

Jump to

Keyboard shortcuts

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