hns.go 581 B

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