Documentation ¶
Index ¶
- Variables
- func BuildResource(namespace string, args ...string) (pb.Resource, error)
- func BuildStatSummaryRequest(p StatSummaryRequestParams) (*pb.StatSummaryRequest, error)
- func BuildTapByResourceRequest(params TapRequestParams) (*pb.TapByResourceRequest, error)
- func GRPCError(err error) error
- func RenderTapEvent(event *pb.TapEvent, resource string) string
- type StatSummaryRequestParams
- type TapRequestParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ValidTargets specifies resource types allowed as a target: // target resource on an inbound query // target resource on an outbound 'to' query // destination resource on an outbound 'from' query ValidTargets = []string{ k8s.Deployment, k8s.Namespace, k8s.Pod, k8s.ReplicationController, k8s.Authority, } // ValidDestinations specifies resource types allowed as a destination: // destination resource on an outbound 'to' query // target resource on an outbound 'from' query ValidDestinations = []string{ k8s.Deployment, k8s.Namespace, k8s.Pod, k8s.ReplicationController, k8s.Service, } )
Functions ¶
func BuildResource ¶ added in v0.4.1
BuildResource parses input strings, typically from CLI flags, to build a Resource object for use in the protobuf API.
func BuildStatSummaryRequest ¶ added in v0.4.0
func BuildStatSummaryRequest(p StatSummaryRequestParams) (*pb.StatSummaryRequest, error)
func BuildTapByResourceRequest ¶
func BuildTapByResourceRequest(params TapRequestParams) (*pb.TapByResourceRequest, error)
Types ¶
type StatSummaryRequestParams ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.