mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* refactor: Set the experimental mode env var in a single place for the '--api-server' related tests * Add integration tests highlighting the expectations * Make the state client return the API server ports per platform 'odo dev' might be running on both cluster and podman, so we might end up with several API servers. * Make 'odo describe component' return information about the API Server and web UI This is viewable only when running 'odo describe component' with the experimental mode enabled. * fixup! refactor: Set the experimental mode env var in a single place for the '--api-server' related tests * Unit-test describe#filterByPlatform logic * Simplify logic for 'describe#filterByPlatform', as suggested in review Co-authored-by: Philippe Martin <phmartin@redhat.com> --------- Co-authored-by: Philippe Martin <phmartin@redhat.com>
16 lines
465 B
Go
16 lines
465 B
Go
package state
|
|
|
|
import (
|
|
"github.com/redhat-developer/odo/pkg/api"
|
|
)
|
|
|
|
type Content struct {
|
|
// PID is the ID of the process to which the state belongs
|
|
PID int `json:"pid"`
|
|
// Platform indicates on which platform the session works
|
|
Platform string `json:"platform"`
|
|
// ForwardedPorts are the ports forwarded during odo dev session
|
|
ForwardedPorts []api.ForwardedPort `json:"forwardedPorts"`
|
|
APIServerPort int `json:"apiServerPort,omitempty"`
|
|
}
|