[GLBC] Update firewall source ranges if outdated (#574)
check firewall rule source ranges
This commit is contained in:
parent
c36d6ffbff
commit
987540f8f6
5 changed files with 182 additions and 56 deletions
|
|
@ -312,6 +312,11 @@ func (g GCEURLMap) PutDefaultBackend(d *compute.BackendService) {
|
|||
}
|
||||
}
|
||||
|
||||
// FakeNotFoundErr creates a NotFound error with type googleapi.Error
|
||||
func FakeGoogleAPINotFoundErr() *googleapi.Error {
|
||||
return &googleapi.Error{Code: 404}
|
||||
}
|
||||
|
||||
// IsHTTPErrorCode checks if the given error matches the given HTTP Error code.
|
||||
// For this to work the error must be a googleapi Error.
|
||||
func IsHTTPErrorCode(err error, code int) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue