hns.go 559 B

123456789101112131415161718192021222324
  1. package hns
  2. import "fmt"
  3. //go:generate go run ../../mksyscall_windows.go -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. }