firewallservice

package
v0.0.0-...-bde254b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFirewallErrorMsg

func GetFirewallErrorMsg(service, destinationIP, destinationPort, sourceIP string) string

func GetFirewallResolutionMsg

func GetFirewallResolutionMsg(destinationIP, destinationPort, sourceIP string) string

func GetFirewallSuccessMsg

func GetFirewallSuccessMsg(service, destinationIP, destinationPort, sourceIP string) string

Types

type FirewallService

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

func NewFirewallService

func NewFirewallService(log logger.Logger, timeout time.Duration, port string) *FirewallService

func (*FirewallService) GetFirewallDetails

func (fw *FirewallService) GetFirewallDetails(reqBody models.FirewallRequest) models.FirewallResponse

type IFirewallService

type IFirewallService interface {
	GetFirewallDetails(models.FirewallRequest) models.FirewallResponse
}

type MockFirewallService

type MockFirewallService struct {
	GetFirewallDetailsFunc func(reqBody models.FirewallRequest) models.FirewallResponse
}

func (*MockFirewallService) GetFirewallDetails

func (mnm *MockFirewallService) GetFirewallDetails(reqBody models.FirewallRequest) models.FirewallResponse

Jump to

Keyboard shortcuts

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