aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/Microsoft/hcsshim/internal/hns/hns.go
blob: b2e475f53c6646cfb2473f3bb32b3530a62dd23d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package hns

import "fmt"

//go:generate go run ../../mksyscall_windows.go -output zsyscall_windows.go hns.go

//sys _hnsCall(method string, path string, object string, response **uint16) (hr error) = vmcompute.HNSCall?

type EndpointNotFoundError struct {
	EndpointName string
}

func (e EndpointNotFoundError) Error() string {
	return fmt.Sprintf("Endpoint %s not found", e.EndpointName)
}

type NetworkNotFoundError struct {
	NetworkName string
}

func (e NetworkNotFoundError) Error() string {
	return fmt.Sprintf("Network %s not found", e.NetworkName)
}