mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-17 03:57:04 +02:00
Fixes: #689, #690 Refactor container inspection code into a package of its own with some rudimentary tests. Use this package consistently in osd commands dealing with containers. Improvements for the next PRs: * implement API to fetch info about container by ID (to avoid fetching full list) * handle and display errors on client side, not to the log of the server * more tests, including k8s containers (how can we do that?) Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
14 lines
376 B
Go
14 lines
376 B
Go
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
package containers
|
|
|
|
// Pod presents information about a pod, including a list of containers
|
|
type Pod struct {
|
|
Name string
|
|
Sandbox string
|
|
|
|
Containers []*Container
|
|
}
|