special

package
v0.0.0-...-9a1e35a Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: CC-BY-SA-4.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TypeCutter = "cutter"
	DescCutter = "Remove data from previous steps"
)
View Source
const (
	TypeLookup = "lookup"
	DescLookup = "Lookup specified IP or CIDR from various formats of data"
)
View Source
const (
	TypePrivate = "private"
	DescPrivate = "Convert LAN and private network CIDR to other formats"
)
View Source
const (
	TypeStdin = "stdin"
	DescStdin = "Accept plaintext IP & CIDR from standard input, separated by newline"
)
View Source
const (
	TypeStdout = "stdout"
	DescStdout = "Convert data to plaintext CIDR format and output to standard output"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cutter

type Cutter struct {
	Type        string
	Action      lib.Action
	Description string
	Want        map[string]bool
	OnlyIPType  lib.IPType
}

func (*Cutter) GetAction

func (c *Cutter) GetAction() lib.Action

func (*Cutter) GetDescription

func (c *Cutter) GetDescription() string

func (*Cutter) GetType

func (c *Cutter) GetType() string

func (*Cutter) Input

func (c *Cutter) Input(container lib.Container) (lib.Container, error)

type Lookup

type Lookup struct {
	Type        string
	Action      lib.Action
	Description string
	Search      string
	SearchList  []string
}

func (*Lookup) GetAction

func (l *Lookup) GetAction() lib.Action

func (*Lookup) GetDescription

func (l *Lookup) GetDescription() string

func (*Lookup) GetType

func (l *Lookup) GetType() string

func (*Lookup) Output

func (l *Lookup) Output(container lib.Container) error

type Private

type Private struct {
	Type        string
	Action      lib.Action
	Description string
	OnlyIPType  lib.IPType
}

func (*Private) GetAction

func (p *Private) GetAction() lib.Action

func (*Private) GetDescription

func (p *Private) GetDescription() string

func (*Private) GetType

func (p *Private) GetType() string

func (*Private) Input

func (p *Private) Input(container lib.Container) (lib.Container, error)

type Stdin

type Stdin struct {
	Type        string
	Action      lib.Action
	Description string
	Name        string
	OnlyIPType  lib.IPType
}

func (*Stdin) GetAction

func (s *Stdin) GetAction() lib.Action

func (*Stdin) GetDescription

func (s *Stdin) GetDescription() string

func (*Stdin) GetType

func (s *Stdin) GetType() string

func (*Stdin) Input

func (s *Stdin) Input(container lib.Container) (lib.Container, error)

type Stdout

type Stdout struct {
	Type        string
	Action      lib.Action
	Description string
	Want        []string
	Exclude     []string
	OnlyIPType  lib.IPType
}

func (*Stdout) GetAction

func (s *Stdout) GetAction() lib.Action

func (*Stdout) GetDescription

func (s *Stdout) GetDescription() string

func (*Stdout) GetType

func (s *Stdout) GetType() string

func (*Stdout) Output

func (s *Stdout) Output(container lib.Container) error

Jump to

Keyboard shortcuts

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