network

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	SecurityGroups         []SecurityGroup
	NetworkWatcherFlowLogs []NetworkWatcherFlowLog
}

type NetworkWatcherFlowLog

type NetworkWatcherFlowLog struct {
	Metadata        defsecTypes.Metadata
	RetentionPolicy RetentionPolicy
}

type PortRange

type PortRange struct {
	Metadata defsecTypes.Metadata
	Start    int
	End      int
}

func (PortRange) Includes

func (r PortRange) Includes(port int) bool

type RetentionPolicy

type RetentionPolicy struct {
	Metadata defsecTypes.Metadata
	Enabled  defsecTypes.BoolValue
	Days     defsecTypes.IntValue
}

type SecurityGroup

type SecurityGroup struct {
	Metadata defsecTypes.Metadata
	Rules    []SecurityGroupRule
}

type SecurityGroupRule

type SecurityGroupRule struct {
	Metadata             defsecTypes.Metadata
	Outbound             defsecTypes.BoolValue
	Allow                defsecTypes.BoolValue
	SourceAddresses      []defsecTypes.StringValue
	SourcePorts          []PortRange
	DestinationAddresses []defsecTypes.StringValue
	DestinationPorts     []PortRange
	Protocol             defsecTypes.StringValue
}

Jump to

Keyboard shortcuts

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