mirror of
https://github.com/openfaas/faas.git
synced 2025-06-23 07:13:23 +00:00
Migrate to latest faas-provider version
Adds CRUD for namespaces and moves namespace for delete/ scale to the body from the query string. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
This commit is contained in:
15
gateway/vendor/github.com/prometheus/procfs/internal/util/parse.go
generated
vendored
15
gateway/vendor/github.com/prometheus/procfs/internal/util/parse.go
generated
vendored
@ -64,6 +64,21 @@ func ParsePInt64s(ss []string) ([]*int64, error) {
|
||||
return us, nil
|
||||
}
|
||||
|
||||
// Parses a uint64 from given hex in string.
|
||||
func ParseHexUint64s(ss []string) ([]*uint64, error) {
|
||||
us := make([]*uint64, 0, len(ss))
|
||||
for _, s := range ss {
|
||||
u, err := strconv.ParseUint(s, 16, 64)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
us = append(us, &u)
|
||||
}
|
||||
|
||||
return us, nil
|
||||
}
|
||||
|
||||
// ReadUintFromFile reads a file and attempts to parse a uint64 from it.
|
||||
func ReadUintFromFile(path string) (uint64, error) {
|
||||
data, err := os.ReadFile(path)
|
||||
|
Reference in New Issue
Block a user