providers

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVEProvider

type EVEProvider interface {
	GetByte(*flow.Flow) []byte
}

func CreateProvider

func CreateProvider(ptype string, configFile string, name string) (EVEProvider, error)

type StaticProvider

type StaticProvider struct {
	Static string
}

func MakeStaticProvider

func MakeStaticProvider(configFile string, name string) (*StaticProvider, error)

func (*StaticProvider) GetByte

func (t *StaticProvider) GetByte(f *flow.Flow) []byte

type StaticProviderConfig

type StaticProviderConfig struct {
	Providers []struct {
		Name   string
		Static string
	} `yaml:"providers"`
}

type StaticProviderFields

type StaticProviderFields struct {
	Timestamp   string
	Srcip       string
	Dstip       string
	Srcport     string
	Dstport     string
	Communityid string
}

type TemplateProvider

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

func MakeTemplateProvider

func MakeTemplateProvider(configFile string, name string) (*TemplateProvider, error)

func (*TemplateProvider) GetByte

func (t *TemplateProvider) GetByte(f *flow.Flow) []byte

type TemplateProviderConfig

type TemplateProviderConfig struct {
	Providers []struct {
		Name     string
		Template string
	} `yaml:"providers"`
}

type TemplateProviderFields

type TemplateProviderFields struct {
	Timestamp   string
	Srcip       string
	Dstip       string
	Srcport     string
	Dstport     string
	Communityid string
}

type TengoProvider

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

func MakeTengoProvider

func MakeTengoProvider(configFile string, name string) (*TengoProvider, error)

func (*TengoProvider) GetByte

func (t *TengoProvider) GetByte(f *flow.Flow) []byte

type TengoProviderConfig

type TengoProviderConfig struct {
	Providers []struct {
		Name  string
		Tengo string
	} `yaml:"providers"`
}

type TengoProviderFields

type TengoProviderFields struct {
	Timestamp   string
	Srcip       string
	Dstip       string
	Srcport     string
	Dstport     string
	Communityid string
}

Jump to

Keyboard shortcuts

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