Documentation
¶
Index ¶
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.Deployments, k8s.Namespaces, k8s.Pods, k8s.ReplicationControllers, k8s.Authorities, } // 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.Deployments, k8s.Namespaces, k8s.Pods, k8s.ReplicationControllers, k8s.Services, } )
Functions ¶
func BuildResource ¶ added in v0.4.2
BuildResource parses input strings, typically from CLI flags, to build a Resource object for use in the Conduit Public API.
func BuildStatSummaryRequest ¶ added in v0.4.0
func BuildStatSummaryRequest(p StatSummaryRequestParams) (*pb.StatSummaryRequest, error)
func GRPCError ¶ added in v0.4.2
GRPCError generates a gRPC error code, as defined in google.golang.org/grpc/status. If the error is nil or already a gRPC error, return the error. If the error is of type k8s.io/apimachinery/pkg/apis/meta/v1#StatusReason, attempt to map the reason to a gRPC error.
Types ¶
Source Files
¶
- api_utils.go
Click to show internal directories.
Click to hide internal directories.