...

Source file src/github.com/Microsoft/hcsshim/internal/hns/hns.go

Documentation: github.com/Microsoft/hcsshim/internal/hns

     1  package hns
     2  
     3  import "fmt"
     4  
     5  //go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go hns.go
     6  
     7  //sys _hnsCall(method string, path string, object string, response **uint16) (hr error) = vmcompute.HNSCall?
     8  
     9  type EndpointNotFoundError struct {
    10  	EndpointName string
    11  }
    12  
    13  func (e EndpointNotFoundError) Error() string {
    14  	return fmt.Sprintf("Endpoint %s not found", e.EndpointName)
    15  }
    16  
    17  type NetworkNotFoundError struct {
    18  	NetworkName string
    19  }
    20  
    21  func (e NetworkNotFoundError) Error() string {
    22  	return fmt.Sprintf("Network %s not found", e.NetworkName)
    23  }
    24  

View as plain text