aliyun

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 12 Imported by: 0

README

AWS适配说明

AWS适配通过对接安全组进行IP拦截规则的写入。

使用时,将安全组ID作为Dest参数传入。

对应安全组应该在ALB中进行对应配置,即可达到IP安全智能判断的作用

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AclEntry

type AclEntry struct {
	Entry   string `json:"entry"`
	Comment string `json:"comment"`
}

type AclEntrys

type AclEntrys []AclEntry

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) Init

func (h *Handler) Init(cfg *notify.Config, ncfg *aws.Config, ctx context.Context, dest string) (err error)

func (*Handler) ListExistedEntrys added in v0.9.0

func (h *Handler) ListExistedEntrys() (map[string]*entry.LogEntry, error)

func (*Handler) NotifyAdd

func (h *Handler) NotifyAdd(toAdd *entry.LogEntry) error

func (*Handler) NotifyDel

func (h *Handler) NotifyDel(toAdd ...*entry.LogEntry) error

Jump to

Keyboard shortcuts

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