![dependabot[bot]](/assets/img/avatar_default.png)
Bumps the golang group with 2 updates: [github.com/Microsoft/hcsshim](https://github.com/Microsoft/hcsshim) and [github.com/safchain/ethtool](https://github.com/safchain/ethtool). Updates `github.com/Microsoft/hcsshim` from 0.12.3 to 0.12.4 - [Release notes](https://github.com/Microsoft/hcsshim/releases) - [Commits](https://github.com/Microsoft/hcsshim/compare/v0.12.3...v0.12.4) Updates `github.com/safchain/ethtool` from 0.4.0 to 0.4.1 - [Release notes](https://github.com/safchain/ethtool/releases) - [Commits](https://github.com/safchain/ethtool/compare/v0.4.0...v0.4.1) --- updated-dependencies: - dependency-name: github.com/Microsoft/hcsshim dependency-type: direct:production update-type: version-update:semver-patch dependency-group: golang - dependency-name: github.com/safchain/ethtool dependency-type: direct:production update-type: version-update:semver-patch dependency-group: golang ... Signed-off-by: dependabot[bot] <support@github.com>
112 lines
3.0 KiB
Go
112 lines
3.0 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 `json:",omitempty"`
|
|
InternalPort uint16 `json:",omitempty"`
|
|
ExternalPort uint16 `json:",omitempty"`
|
|
ExternalPortReserved bool `json:",omitempty"`
|
|
}
|
|
|
|
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"`
|
|
MaxPortPoolUsage uint16 `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 `json:",omitempty"`
|
|
Protocols string `json:"Protocols,omitempty"`
|
|
InternalPort uint16 `json:",omitempty"`
|
|
Action ActionType
|
|
Direction DirectionType
|
|
LocalAddresses string `json:",omitempty"`
|
|
RemoteAddresses string `json:",omitempty"`
|
|
LocalPorts string `json:"LocalPorts,omitempty"`
|
|
LocalPort uint16 `json:",omitempty"`
|
|
RemotePorts string `json:"RemotePorts,omitempty"`
|
|
RemotePort uint16 `json:",omitempty"`
|
|
RuleType RuleType `json:"RuleType,omitempty"`
|
|
Priority uint16 `json:",omitempty"`
|
|
ServiceName string `json:",omitempty"`
|
|
}
|
|
|
|
type Policy struct {
|
|
Type PolicyType `json:"Type"`
|
|
}
|