classifycon

package
v0.0.0-...-0a64cdf Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ActionClass registered
	ActionClass = "tls.classifycon"
)

Variables

This section is empty.

Functions

func Builder

func Builder() builder.BuildActionFn

Builder returns a builder function

Types

type Action

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

Action register hooks to classify using a classifier

func New

func New(id string, plugins []string, cfg Config, m *manager.Manager, l yalogi.Logger) *Action

New creates a new action

func (*Action) GetID

func (a *Action) GetID() string

GetID returns action id

func (*Action) Plugins

func (a *Action) Plugins() []string

Plugins implements Action interface

func (*Action) RegisterTLSHooks

func (a *Action) RegisterTLSHooks(hooks *tlsproc.Hooks)

RegisterTLSHooks adds hooks to tlsproc

type Config

type Config struct {
	Policy action.RuleSet
}

Config sets configuration

Jump to

Keyboard shortcuts

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