Debian Codegraph @

google_guest_agent/addresses_unix.go

raw symbols SCIP
1 // Copyright 2017 Google Inc. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // +build !windows
16
17 package mainscip-go gomod github.com/GoogleCloudPlatform/guest-agent . `github.com/GoogleCloudPlatform/guest-agent/google_guest_agent`/
18
19 import (
20 "errorsscip-go gomod github.com/golang/go/src go1.13 errors/"
21 "netscip-go gomod github.com/golang/go/src go1.13 net/"
22 )
23
24 // TODO: addLocalRoute and addRoute should be merged with the addition of ipForwardType to ipForwardEntry.
25 func addIPForwardEntryscip-go gomod github.com/GoogleCloudPlatform/guest-agent . `github.com/GoogleCloudPlatform/guest-agent/google_guest_agent`/addIPForwardEntry().(route ipForwardEntryscip-go gomod github.com/GoogleCloudPlatform/guest-agent . `github.com/GoogleCloudPlatform/guest-agent/google_guest_agent`/ipForwardEntry#) error {
26 return errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("addIPForwardEntry unimplemented on non Windows systems")
27 }
28
29 // TODO: getLocalRoutes and getIPForwardEntries should be merged.
30 func getIPForwardEntriesscip-go gomod github.com/GoogleCloudPlatform/guest-agent . `github.com/GoogleCloudPlatform/guest-agent/google_guest_agent`/getIPForwardEntries().() ([]ipForwardEntryscip-go gomod github.com/GoogleCloudPlatform/guest-agent . `github.com/GoogleCloudPlatform/guest-agent/google_guest_agent`/ipForwardEntry#, error) {
31 return nil, errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("getIPForwardEntries unimplemented on non Windows systems")
32 }
33
34 func addAddressscip-go gomod github.com/GoogleCloudPlatform/guest-agent . `github.com/GoogleCloudPlatform/guest-agent/google_guest_agent`/addAddress().(ip netscip-go gomod github.com/golang/go/src go1.13 net/.IPscip-go gomod github.com/golang/go/src go1.13 net/IP#, mask netscip-go gomod github.com/golang/go/src go1.13 net/.IPMaskscip-go gomod github.com/golang/go/src go1.13 net/IPMask#, index uint32) error {
35 return errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("addAddress unimplemented on non Windows systems")
36 }
37
38 func removeAddressscip-go gomod github.com/GoogleCloudPlatform/guest-agent . `github.com/GoogleCloudPlatform/guest-agent/google_guest_agent`/removeAddress().(ip netscip-go gomod github.com/golang/go/src go1.13 net/.IPscip-go gomod github.com/golang/go/src go1.13 net/IP#, index uint32) error {
39 return errorsscip-go gomod github.com/golang/go/src go1.13 errors/.Newscip-go gomod github.com/golang/go/src go1.13 errors/New().("removeAddress unimplemented on non Windows systems")
40 }