mirror of
https://github.com/mudler/luet.git
synced 2025-09-03 16:25:19 +00:00
update vendor
This commit is contained in:
6
vendor/github.com/Microsoft/hcsshim/hnsendpoint.go
generated
vendored
6
vendor/github.com/Microsoft/hcsshim/hnsendpoint.go
generated
vendored
@@ -40,6 +40,9 @@ func HNSListEndpointRequest() ([]HNSEndpoint, error) {
|
||||
// HotAttachEndpoint makes a HCS Call to attach the endpoint to the container
|
||||
func HotAttachEndpoint(containerID string, endpointID string) error {
|
||||
endpoint, err := GetHNSEndpointByID(endpointID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
isAttached, err := endpoint.IsAttached(containerID)
|
||||
if isAttached {
|
||||
return err
|
||||
@@ -50,6 +53,9 @@ func HotAttachEndpoint(containerID string, endpointID string) error {
|
||||
// HotDetachEndpoint makes a HCS Call to detach the endpoint from the container
|
||||
func HotDetachEndpoint(containerID string, endpointID string) error {
|
||||
endpoint, err := GetHNSEndpointByID(endpointID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
isAttached, err := endpoint.IsAttached(containerID)
|
||||
if !isAttached {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user