forked from ligato/vpp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Agentctl enhancements (ligato#1474)
* Fix doc comment for agentctl Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Use defined name in usage line Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Fix http client Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Refactor agentctl Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Fix problems reported by golangcibot Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Cleanup client options Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Define KVDBAPIClient Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Cleanup code Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Resolve comments Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Resolve comments Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Fix response Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Resolve review comments Signed-off-by: Ondrej Fabry <ofabry@cisco.com> * Remove unused model list option Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
- Loading branch information
1 parent
7e70a01
commit 9a195a0
Showing
95 changed files
with
5,146 additions
and
9,164 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2019 Cisco and/or its affiliates. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at: | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package api | ||
|
||
const ( | ||
DefaultVersion = "" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) 2019 Cisco and/or its affiliates. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at: | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package types | ||
|
||
type Model struct { | ||
Name string | ||
Module string | ||
Type string | ||
Version string | ||
Alias string `json:",omitempty"` | ||
KeyPrefix string | ||
NameTemplate string | ||
ProtoName string | ||
ProtoFile string | ||
} | ||
|
||
type ModelListOptions struct { | ||
} | ||
|
||
type SchedulerDumpOptions struct { | ||
KeyPrefix string | ||
View string | ||
} | ||
|
||
type SchedulerValuesOptions struct { | ||
KeyPrefix string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package types | ||
|
||
// ErrorResponse represents an error. | ||
type ErrorResponse struct { | ||
Message string `json:"message"` | ||
} | ||
|
||
// ComponentVersion describes the version information for a specific component. | ||
type ComponentVersion struct { | ||
Name string | ||
Version string | ||
Details map[string]string `json:",omitempty"` | ||
} | ||
|
||
// Version contains response of Engine API: | ||
// GET "/version" | ||
type Version struct { | ||
Components []ComponentVersion | ||
|
||
Version string | ||
APIVersion string | ||
MinAPIVersion string | ||
GitCommit string | ||
GoVersion string | ||
Os string | ||
Arch string | ||
KernelVersion string | ||
BuildTime string | ||
} | ||
|
||
// Ping contains response of Engine API: | ||
// GET "/_ping" | ||
type Ping struct { | ||
APIVersion string | ||
OSType string | ||
} | ||
|
||
type Logger struct { | ||
Logger string `json:"logger,omitempty"` | ||
Level string `json:"level,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.