Merge pull request #2775 from jterry75/vendor_hcsshim
Revendor github.com/Microsoft/hcsshim
This commit is contained in:
commit
c7896bd722
@ -33,7 +33,7 @@ golang.org/x/sync 450f422ab23cf9881c94e2db30cac0eb1b7cf80c
|
|||||||
github.com/BurntSushi/toml a368813c5e648fee92e5f6c30e3944ff9d5e8895
|
github.com/BurntSushi/toml a368813c5e648fee92e5f6c30e3944ff9d5e8895
|
||||||
github.com/grpc-ecosystem/go-grpc-prometheus 6b7015e65d366bf3f19b2b2a000a831940f0f7e0
|
github.com/grpc-ecosystem/go-grpc-prometheus 6b7015e65d366bf3f19b2b2a000a831940f0f7e0
|
||||||
github.com/Microsoft/go-winio v0.4.11
|
github.com/Microsoft/go-winio v0.4.11
|
||||||
github.com/Microsoft/hcsshim v0.7.12
|
github.com/Microsoft/hcsshim v0.8.1
|
||||||
google.golang.org/genproto d80a6e20e776b0b17a324d0ba1ab50a39c8e8944
|
google.golang.org/genproto d80a6e20e776b0b17a324d0ba1ab50a39c8e8944
|
||||||
golang.org/x/text 19e51611da83d6be54ddafce4a4af510cb3e9ea4
|
golang.org/x/text 19e51611da83d6be54ddafce4a4af510cb3e9ea4
|
||||||
github.com/containerd/ttrpc 2a805f71863501300ae1976d29f0454ae003e85a
|
github.com/containerd/ttrpc 2a805f71863501300ae1976d29f0454ae003e85a
|
||||||
|
4
vendor/github.com/Microsoft/hcsshim/hnspolicylist.go
generated
vendored
4
vendor/github.com/Microsoft/hcsshim/hnspolicylist.go
generated
vendored
@ -37,8 +37,8 @@ func GetPolicyListByID(policyListID string) (*PolicyList, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AddLoadBalancer policy list for the specified endpoints
|
// AddLoadBalancer policy list for the specified endpoints
|
||||||
func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) {
|
func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, isDSR bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) {
|
||||||
return hns.AddLoadBalancer(endpoints, isILB, sourceVIP, vip, protocol, internalPort, externalPort)
|
return hns.AddLoadBalancer(endpoints, isILB, isDSR, sourceVIP, vip, protocol, internalPort, externalPort)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddRoute adds route policy list for the specified endpoints
|
// AddRoute adds route policy list for the specified endpoints
|
||||||
|
5
vendor/github.com/Microsoft/hcsshim/interface.go
generated
vendored
5
vendor/github.com/Microsoft/hcsshim/interface.go
generated
vendored
@ -17,6 +17,11 @@ type MappedPipe = schema1.MappedPipe
|
|||||||
type HvRuntime = schema1.HvRuntime
|
type HvRuntime = schema1.HvRuntime
|
||||||
type MappedVirtualDisk = schema1.MappedVirtualDisk
|
type MappedVirtualDisk = schema1.MappedVirtualDisk
|
||||||
|
|
||||||
|
// AssignedDevice represents a device that has been directly assigned to a container
|
||||||
|
//
|
||||||
|
// NOTE: Support added in RS5
|
||||||
|
type AssignedDevice = schema1.AssignedDevice
|
||||||
|
|
||||||
// ContainerConfig is used as both the input of CreateContainer
|
// ContainerConfig is used as both the input of CreateContainer
|
||||||
// and to convert the parameters to JSON for passing onto the HCS
|
// and to convert the parameters to JSON for passing onto the HCS
|
||||||
type ContainerConfig = schema1.ContainerConfig
|
type ContainerConfig = schema1.ContainerConfig
|
||||||
|
4
vendor/github.com/Microsoft/hcsshim/internal/hns/hnspolicylist.go
generated
vendored
4
vendor/github.com/Microsoft/hcsshim/internal/hns/hnspolicylist.go
generated
vendored
@ -20,6 +20,7 @@ type ELBPolicy struct {
|
|||||||
SourceVIP string `json:"SourceVIP,omitempty"`
|
SourceVIP string `json:"SourceVIP,omitempty"`
|
||||||
VIPs []string `json:"VIPs,omitempty"`
|
VIPs []string `json:"VIPs,omitempty"`
|
||||||
ILB bool `json:"ILB,omitempty"`
|
ILB bool `json:"ILB,omitempty"`
|
||||||
|
DSR bool `json:"IsDSR,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LBPolicy is a structure defining schema for LoadBalancing based Policy
|
// LBPolicy is a structure defining schema for LoadBalancing based Policy
|
||||||
@ -139,7 +140,7 @@ func (policylist *PolicyList) RemoveEndpoint(endpoint *HNSEndpoint) (*PolicyList
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AddLoadBalancer policy list for the specified endpoints
|
// AddLoadBalancer policy list for the specified endpoints
|
||||||
func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) {
|
func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, isDSR bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) {
|
||||||
operation := "AddLoadBalancer"
|
operation := "AddLoadBalancer"
|
||||||
title := "hcsshim::PolicyList::" + operation
|
title := "hcsshim::PolicyList::" + operation
|
||||||
logrus.Debugf(title+" endpointId=%v, isILB=%v, sourceVIP=%s, vip=%s, protocol=%v, internalPort=%v, externalPort=%v", endpoints, isILB, sourceVIP, vip, protocol, internalPort, externalPort)
|
logrus.Debugf(title+" endpointId=%v, isILB=%v, sourceVIP=%s, vip=%s, protocol=%v, internalPort=%v, externalPort=%v", endpoints, isILB, sourceVIP, vip, protocol, internalPort, externalPort)
|
||||||
@ -149,6 +150,7 @@ func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, sourceVIP, vip string,
|
|||||||
elbPolicy := &ELBPolicy{
|
elbPolicy := &ELBPolicy{
|
||||||
SourceVIP: sourceVIP,
|
SourceVIP: sourceVIP,
|
||||||
ILB: isILB,
|
ILB: isILB,
|
||||||
|
DSR: isDSR,
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(vip) > 0 {
|
if len(vip) > 0 {
|
||||||
|
4
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory_2.go
generated
vendored
4
vendor/github.com/Microsoft/hcsshim/internal/schema2/memory_2.go
generated
vendored
@ -10,7 +10,6 @@
|
|||||||
package hcsschema
|
package hcsschema
|
||||||
|
|
||||||
type Memory2 struct {
|
type Memory2 struct {
|
||||||
|
|
||||||
SizeInMB int32 `json:"SizeInMB,omitempty"`
|
SizeInMB int32 `json:"SizeInMB,omitempty"`
|
||||||
|
|
||||||
AllowOvercommit bool `json:"AllowOvercommit,omitempty"`
|
AllowOvercommit bool `json:"AllowOvercommit,omitempty"`
|
||||||
@ -20,4 +19,7 @@ type Memory2 struct {
|
|||||||
EnableColdHint bool `json:"EnableColdHint,omitempty"`
|
EnableColdHint bool `json:"EnableColdHint,omitempty"`
|
||||||
|
|
||||||
EnableEpf bool `json:"EnableEpf,omitempty"`
|
EnableEpf bool `json:"EnableEpf,omitempty"`
|
||||||
|
|
||||||
|
// EnableDeferredCommit is private in the schema. If regenerated need to add back.
|
||||||
|
EnableDeferredCommit bool `json:"EnableDeferredCommit,omitempty"`
|
||||||
}
|
}
|
||||||
|
5
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_p_mem_controller.go
generated
vendored
5
vendor/github.com/Microsoft/hcsshim/internal/schema2/virtual_p_mem_controller.go
generated
vendored
@ -10,12 +10,11 @@
|
|||||||
package hcsschema
|
package hcsschema
|
||||||
|
|
||||||
type VirtualPMemController struct {
|
type VirtualPMemController struct {
|
||||||
|
|
||||||
Devices map[string]VirtualPMemDevice `json:"Devices,omitempty"`
|
Devices map[string]VirtualPMemDevice `json:"Devices,omitempty"`
|
||||||
|
|
||||||
MaximumCount int32 `json:"MaximumCount,omitempty"`
|
MaximumCount uint32 `json:"MaximumCount,omitempty"`
|
||||||
|
|
||||||
MaximumSizeBytes int32 `json:"MaximumSizeBytes,omitempty"`
|
MaximumSizeBytes uint64 `json:"MaximumSizeBytes,omitempty"`
|
||||||
|
|
||||||
Backing string `json:"Backing,omitempty"`
|
Backing string `json:"Backing,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user