inspect

package
v0.0.0-...-8223eb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	INTENT_SOURCE = iota
	REALITY_SOURCE
)

Variables

This section is empty.

Functions

func AddKVPToMap

func AddKVPToMap(result consul.ManifestResult, source int, filterNode types.NodeName, filterPod types.PodID, statuses map[types.PodID]map[types.NodeName]NodePodStatus) error

Types

type LaunchableVersion

type LaunchableVersion struct {
	Location string                   `json:"location,omitempty"`
	Version  launch.LaunchableVersion `json:"version,omitempty"`
}

type NodePodStatus

type NodePodStatus struct {
	NodeName           types.NodeName                            `json:"node,omitempty"`
	PodId              types.PodID                               `json:"pod,omitempty"`
	IntentManifestSHA  string                                    `json:"intent_manifest_sha"`
	RealityManifestSHA string                                    `json:"reality_manifest_sha"`
	IntentVersions     map[launch.LaunchableID]LaunchableVersion `json:"intent_versions,omitempty"`
	RealityVersions    map[launch.LaunchableID]LaunchableVersion `json:"reality_versions,omitempty"`
	Health             health.HealthState                        `json:"health,omitempty"`

	// These fields are kept for backwards compatibility with tools that
	// parse the output of p2-inspect. intent_versions and reality_versions
	// are preferred since those handle multiple versions of manifest syntax
	IntentLocations  []string `json:"intent_locations"`
	RealityLocations []string `json:"reality_locations"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL