locations

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: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessAction

type AccessAction actions.Action

func (*AccessAction) Run

func (this *AccessAction) Run(params struct {
	ServerId   string
	LocationId string
})

访问控制

type AddAction

type AddAction actions.Action

func (*AddAction) Run

func (this *AddAction) Run(params struct {
	ServerId string
	From     string
	Must     *actions.Must
})

添加路径规则

func (*AddAction) RunPost

func (this *AddAction) RunPost(params struct {
	ServerId             string
	Name                 string
	Pattern              string
	PatternType          int
	Root                 string
	Charset              string
	Index                []string
	MaxBodySize          float64
	MaxBodyUnit          string
	AccessLogIsInherited bool
	EnableStat           bool
	GzipLevel            int8
	GzipMinLength        float64
	GzipMinUnit          string
	RedirectToHttps      bool
	On                   bool
	IsReverse            bool
	IsCaseInsensitive    bool

	PageStatus []string
	PageURL    []string

	ShutdownPageOn bool
	ShutdownPage   string

	CondParams []string
	CondOps    []string
	CondValues []string
})

保存提交

type CacheAction

type CacheAction actions.Action

func (*CacheAction) Run

func (this *CacheAction) Run(params struct {
	ServerId   string
	LocationId string
})

缓存设置

type DeleteAction

type DeleteAction actions.Action

func (*DeleteAction) Run

func (this *DeleteAction) Run(params struct {
	ServerId   string
	LocationId string
})

删除路径规则

type DetailAction

type DetailAction actions.Action

func (*DetailAction) Run

func (this *DetailAction) Run(params struct {
	ServerId   string
	LocationId string
})

路径规则详情

type DuplicateAction added in v0.1.5

type DuplicateAction actions.Action

func (*DuplicateAction) RunPost added in v0.1.5

func (this *DuplicateAction) RunPost(params struct {
	ServerId   string
	LocationId string
})

复制

type ExportAction added in v0.1.5

type ExportAction actions.Action

func (*ExportAction) RunGet added in v0.1.5

func (this *ExportAction) RunGet(params struct {
	ServerId   string
	LocationId string
})

导出路径规则

type FastcgiAction

type FastcgiAction actions.Action

func (*FastcgiAction) Run

func (this *FastcgiAction) Run(params struct {
	ServerId   string
	LocationId string
})

Fastcgi设置

type HeadersAction

type HeadersAction actions.Action

func (*HeadersAction) Run

func (this *HeadersAction) Run(params struct {
	ServerId   string // 必填
	LocationId string
})

自定义Http Header

type ImportAction added in v0.1.5

type ImportAction actions.Action

func (*ImportAction) RunGet added in v0.1.5

func (this *ImportAction) RunGet(params struct {
	ServerId string
})

导入路径规则

func (*ImportAction) RunPost added in v0.1.5

func (this *ImportAction) RunPost(params struct {
	ServerId string
	File     *actions.File
	Must     *actions.Must
})

提交保存

type IndexAction

type IndexAction actions.Action

func (*IndexAction) Run

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

路径规则列表

type MoveAction added in v0.1.2

type MoveAction actions.Action

func (*MoveAction) Run added in v0.1.2

func (this *MoveAction) Run(params struct {
	ServerId  string
	FromIndex int
	ToIndex   int
})

移动

type MoveDownAction

type MoveDownAction actions.Action

func (*MoveDownAction) Run

func (this *MoveDownAction) Run(params struct {
	ServerId string
	Index    int
})

type MoveUpAction

type MoveUpAction actions.Action

func (*MoveUpAction) Run

func (this *MoveUpAction) Run(params struct {
	ServerId string
	Index    int
})

type RewriteAction

type RewriteAction actions.Action

func (*RewriteAction) Run

func (this *RewriteAction) Run(params struct {
	ServerId   string
	LocationId string
})

重写规则

type TestAction

type TestAction actions.Action

func (*TestAction) Run

func (this *TestAction) Run(params struct {
	Pattern           string
	PatternType       int
	IsReverse         bool
	IsCaseInsensitive bool
	TestingPath       string

	CondParams []string
	CondOps    []string
	CondValues []string
})

测试

type UpdateAction

type UpdateAction actions.Action

func (*UpdateAction) Run

func (this *UpdateAction) Run(params struct {
	ServerId    string
	LocationId  string
	From        string
	ShowSpecial bool
})

修改

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	ServerId             string
	LocationId           string
	Pattern              string
	PatternType          int
	Name                 string
	Root                 string
	Charset              string
	Index                []string
	MaxBodySize          float64
	MaxBodyUnit          string
	AccessLogIsInherited bool
	EnableStat           bool
	GzipLevel            int8
	GzipMinLength        float64
	GzipMinUnit          string
	RedirectToHttps      bool
	On                   bool
	IsReverse            bool
	IsCaseInsensitive    bool

	PageStatus []string
	PageURL    []string

	ShutdownPageOn bool
	ShutdownPage   string

	CondParams []string
	CondOps    []string
	CondValues []string
})

保存修改

type UpdateCacheAction

type UpdateCacheAction actions.Action

func (*UpdateCacheAction) Run

func (this *UpdateCacheAction) Run(params struct {
	ServerId   string
	LocationId string
	Policy     string
})

更新缓存设置

type WafAction added in v0.1.3

type WafAction actions.Action

func (*WafAction) RunGet added in v0.1.3

func (this *WafAction) RunGet(params struct {
	ServerId   string
	LocationId string
})

WAF设置

type WafUpdateAction added in v0.1.3

type WafUpdateAction actions.Action

func (*WafUpdateAction) RunPost added in v0.1.3

func (this *WafUpdateAction) RunPost(params struct {
	ServerId   string
	LocationId string
	WafId      string
})

WAF修改

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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