mirror of
				https://github.com/containers/podman.git
				synced 2025-11-01 02:42:11 +08:00 
			
		
		
		
	![dependabot-preview[bot]](/assets/img/avatar_default.png) 1f0cc866d4
			
		
	
	1f0cc866d4
	
	
	
		
			
			Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.19.1 to 1.19.2. - [Release notes](https://github.com/containers/storage/releases) - [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md) - [Commits](https://github.com/containers/storage/compare/v1.19.1...v1.19.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Valentin Rothberg <rothberg@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
		
			
				
	
	
		
			110 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			110 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| package hns
 | |
| 
 | |
| // Type of Request Support in ModifySystem
 | |
| type PolicyType string
 | |
| 
 | |
| // RequestType const
 | |
| const (
 | |
| 	Nat                  PolicyType = "NAT"
 | |
| 	ACL                  PolicyType = "ACL"
 | |
| 	PA                   PolicyType = "PA"
 | |
| 	VLAN                 PolicyType = "VLAN"
 | |
| 	VSID                 PolicyType = "VSID"
 | |
| 	VNet                 PolicyType = "VNET"
 | |
| 	L2Driver             PolicyType = "L2Driver"
 | |
| 	Isolation            PolicyType = "Isolation"
 | |
| 	QOS                  PolicyType = "QOS"
 | |
| 	OutboundNat          PolicyType = "OutBoundNAT"
 | |
| 	ExternalLoadBalancer PolicyType = "ELB"
 | |
| 	Route                PolicyType = "ROUTE"
 | |
| 	Proxy                PolicyType = "PROXY"
 | |
| )
 | |
| 
 | |
| type NatPolicy struct {
 | |
| 	Type         PolicyType `json:"Type"`
 | |
| 	Protocol     string
 | |
| 	InternalPort uint16
 | |
| 	ExternalPort uint16
 | |
| }
 | |
| 
 | |
| type QosPolicy struct {
 | |
| 	Type                            PolicyType `json:"Type"`
 | |
| 	MaximumOutgoingBandwidthInBytes uint64
 | |
| }
 | |
| 
 | |
| type IsolationPolicy struct {
 | |
| 	Type               PolicyType `json:"Type"`
 | |
| 	VLAN               uint
 | |
| 	VSID               uint
 | |
| 	InDefaultIsolation bool
 | |
| }
 | |
| 
 | |
| type VlanPolicy struct {
 | |
| 	Type PolicyType `json:"Type"`
 | |
| 	VLAN uint
 | |
| }
 | |
| 
 | |
| type VsidPolicy struct {
 | |
| 	Type PolicyType `json:"Type"`
 | |
| 	VSID uint
 | |
| }
 | |
| 
 | |
| type PaPolicy struct {
 | |
| 	Type PolicyType `json:"Type"`
 | |
| 	PA   string     `json:"PA"`
 | |
| }
 | |
| 
 | |
| type OutboundNatPolicy struct {
 | |
| 	Policy
 | |
| 	VIP          string   `json:"VIP,omitempty"`
 | |
| 	Exceptions   []string `json:"ExceptionList,omitempty"`
 | |
| 	Destinations []string `json:",omitempty"`
 | |
| }
 | |
| 
 | |
| type ProxyPolicy struct {
 | |
| 	Type          PolicyType `json:"Type"`
 | |
| 	IP            string     `json:",omitempty"`
 | |
| 	Port          string     `json:",omitempty"`
 | |
| 	ExceptionList []string   `json:",omitempty"`
 | |
| 	Destination   string     `json:",omitempty"`
 | |
| 	OutboundNat   bool       `json:",omitempty"`
 | |
| }
 | |
| 
 | |
| type ActionType string
 | |
| type DirectionType string
 | |
| type RuleType string
 | |
| 
 | |
| const (
 | |
| 	Allow ActionType = "Allow"
 | |
| 	Block ActionType = "Block"
 | |
| 
 | |
| 	In  DirectionType = "In"
 | |
| 	Out DirectionType = "Out"
 | |
| 
 | |
| 	Host   RuleType = "Host"
 | |
| 	Switch RuleType = "Switch"
 | |
| )
 | |
| 
 | |
| type ACLPolicy struct {
 | |
| 	Type            PolicyType `json:"Type"`
 | |
| 	Id              string     `json:"Id,omitempty"`
 | |
| 	Protocol        uint16
 | |
| 	Protocols       string `json:"Protocols,omitempty"`
 | |
| 	InternalPort    uint16
 | |
| 	Action          ActionType
 | |
| 	Direction       DirectionType
 | |
| 	LocalAddresses  string
 | |
| 	RemoteAddresses string
 | |
| 	LocalPorts      string `json:"LocalPorts,omitempty"`
 | |
| 	LocalPort       uint16
 | |
| 	RemotePorts     string `json:"RemotePorts,omitempty"`
 | |
| 	RemotePort      uint16
 | |
| 	RuleType        RuleType `json:"RuleType,omitempty"`
 | |
| 	Priority        uint16
 | |
| 	ServiceName     string
 | |
| }
 | |
| 
 | |
| type Policy struct {
 | |
| 	Type PolicyType `json:"Type"`
 | |
| }
 |