Documentation ¶
Index ¶
- func ASIDFromUPID(u *types.UInt128) uint32
- func ContainerStatusToProto(c *v1.ContainerStatus) *metadatapb.ContainerStatus
- func DeploymentConditionToProto(d *apps.DeploymentCondition) *metadatapb.DeploymentCondition
- func DeploymentSpecToProto(d *apps.DeploymentSpec) *metadatapb.DeploymentSpec
- func DeploymentStatusToProto(d *apps.DeploymentStatus) *metadatapb.DeploymentStatus
- func DeploymentToProto(d *apps.Deployment) *metadatapb.Deployment
- func EndpointAddressFromProto(pb *metadatapb.EndpointAddress) *v1.EndpointAddress
- func EndpointAddressToProto(e *v1.EndpointAddress) *metadatapb.EndpointAddress
- func EndpointPortFromProto(pb *metadatapb.EndpointPort) *v1.EndpointPort
- func EndpointPortToProto(e *v1.EndpointPort) *metadatapb.EndpointPort
- func EndpointSubsetFromProto(pb *metadatapb.EndpointSubset) *v1.EndpointSubset
- func EndpointSubsetToProto(e *v1.EndpointSubset) *metadatapb.EndpointSubset
- func EndpointsFromProto(pb *metadatapb.Endpoints) *v1.Endpoints
- func EndpointsToProto(e *v1.Endpoints) *metadatapb.Endpoints
- func IntOrStringToString(v *intstr.IntOrString) string
- func LabelSelectorToProto(ls *metav1.LabelSelector) *metadatapb.LabelSelector
- func NamespaceToProto(n *v1.Namespace) *metadatapb.Namespace
- func NodeSpecToProto(n *v1.NodeSpec) *metadatapb.NodeSpec
- func NodeStatusToProto(n *v1.NodeStatus) *metadatapb.NodeStatus
- func NodeToProto(n *v1.Node) *metadatapb.Node
- func ObjectMetadataFromProto(pb *metadatapb.ObjectMetadata) *metav1.ObjectMeta
- func ObjectMetadataToProto(o *metav1.ObjectMeta) *metadatapb.ObjectMetadata
- func ObjectReferenceFromProto(pb *metadatapb.ObjectReference) *v1.ObjectReference
- func ObjectReferenceToProto(o *v1.ObjectReference) *metadatapb.ObjectReference
- func OwnerReferenceFromProto(pb *metadatapb.OwnerReference) *metav1.OwnerReference
- func OwnerReferenceToProto(o *metav1.OwnerReference) *metadatapb.OwnerReference
- func PIDFromUPID(u *types.UInt128) uint32
- func PodFromProto(pb *metadatapb.Pod) *v1.Pod
- func PodSpecFromProto(pb *metadatapb.PodSpec) *v1.PodSpec
- func PodSpecToProto(ps *v1.PodSpec) *metadatapb.PodSpec
- func PodStatusFromProto(pb *metadatapb.PodStatus) *v1.PodStatus
- func PodStatusToProto(ps *v1.PodStatus) *metadatapb.PodStatus
- func PodTemplateSpecToProto(ts v1.PodTemplateSpec) *metadatapb.PodTemplateSpec
- func PodToProto(p *v1.Pod) *metadatapb.Pod
- func ReplicaSetSpecToProto(rs *apps.ReplicaSetSpec) *metadatapb.ReplicaSetSpec
- func ReplicaSetStatusToProto(rss *apps.ReplicaSetStatus) *metadatapb.ReplicaSetStatus
- func ReplicaSetToProto(rs *apps.ReplicaSet) *metadatapb.ReplicaSet
- func ServiceFromProto(pb *metadatapb.Service) *v1.Service
- func ServicePortFromProto(pb *metadatapb.ServicePort) *v1.ServicePort
- func ServicePortToProto(e *v1.ServicePort) *metadatapb.ServicePort
- func ServiceSpecFromProto(pb *metadatapb.ServiceSpec) *v1.ServiceSpec
- func ServiceSpecToProto(s *v1.ServiceSpec) *metadatapb.ServiceSpec
- func ServiceToProto(s *v1.Service) *metadatapb.Service
- func StartTSFromUPID(u *types.UInt128) uint64
- func StringFromUPID(u *types.UInt128) string
- func UPIDFromString(upidString string) (types.UInt128, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASIDFromUPID ¶
ASIDFromUPID gets the ASID from the UPID.
func ContainerStatusToProto ¶
func ContainerStatusToProto(c *v1.ContainerStatus) *metadatapb.ContainerStatus
ContainerStatusToProto converts a ContainerStatus into a proto.
func DeploymentConditionToProto ¶
func DeploymentConditionToProto(d *apps.DeploymentCondition) *metadatapb.DeploymentCondition
DeploymentConditionToProto converts apps DeploymentCondition to proto
func DeploymentSpecToProto ¶
func DeploymentSpecToProto(d *apps.DeploymentSpec) *metadatapb.DeploymentSpec
DeploymentSpecToProto converts apps deployment spec to proto
func DeploymentStatusToProto ¶
func DeploymentStatusToProto(d *apps.DeploymentStatus) *metadatapb.DeploymentStatus
DeploymentStatusToProto converts apps.DeploymentStatus to proto
func DeploymentToProto ¶
func DeploymentToProto(d *apps.Deployment) *metadatapb.Deployment
DeploymentToProto converts apps.Deployment to proto
func EndpointAddressFromProto ¶
func EndpointAddressFromProto(pb *metadatapb.EndpointAddress) *v1.EndpointAddress
EndpointAddressFromProto converts a proto message to a EndpointAddress.
func EndpointAddressToProto ¶
func EndpointAddressToProto(e *v1.EndpointAddress) *metadatapb.EndpointAddress
EndpointAddressToProto converts an EndpointAddress into a proto.
func EndpointPortFromProto ¶
func EndpointPortFromProto(pb *metadatapb.EndpointPort) *v1.EndpointPort
EndpointPortFromProto converts a proto message to a EndpointPort.
func EndpointPortToProto ¶
func EndpointPortToProto(e *v1.EndpointPort) *metadatapb.EndpointPort
EndpointPortToProto converts an EndpointPort into a proto.
func EndpointSubsetFromProto ¶
func EndpointSubsetFromProto(pb *metadatapb.EndpointSubset) *v1.EndpointSubset
EndpointSubsetFromProto converts a proto message to a EndpointPort.
func EndpointSubsetToProto ¶
func EndpointSubsetToProto(e *v1.EndpointSubset) *metadatapb.EndpointSubset
EndpointSubsetToProto converts an EndpointSubset into a proto.
func EndpointsFromProto ¶
func EndpointsFromProto(pb *metadatapb.Endpoints) *v1.Endpoints
EndpointsFromProto converts a proto message to an Endpoints.
func EndpointsToProto ¶
func EndpointsToProto(e *v1.Endpoints) *metadatapb.Endpoints
EndpointsToProto converts an Endpoints into a proto.
func IntOrStringToString ¶
func IntOrStringToString(v *intstr.IntOrString) string
IntOrStringToString converts intstr object to string
func LabelSelectorToProto ¶
func LabelSelectorToProto(ls *metav1.LabelSelector) *metadatapb.LabelSelector
LabelSelectorToProto converts a k8s label selector to proto.
func NamespaceToProto ¶
func NamespaceToProto(n *v1.Namespace) *metadatapb.Namespace
NamespaceToProto converts a namespace into a proto.
func NodeSpecToProto ¶
func NodeSpecToProto(n *v1.NodeSpec) *metadatapb.NodeSpec
NodeSpecToProto converts a k8s Node spec into a proto.
func NodeStatusToProto ¶
func NodeStatusToProto(n *v1.NodeStatus) *metadatapb.NodeStatus
NodeStatusToProto converts a k8s Node status into a proto.
func NodeToProto ¶
func NodeToProto(n *v1.Node) *metadatapb.Node
NodeToProto converts a k8s Node object into a proto.
func ObjectMetadataFromProto ¶
func ObjectMetadataFromProto(pb *metadatapb.ObjectMetadata) *metav1.ObjectMeta
ObjectMetadataFromProto converts a proto message to an ObjectMeta.
func ObjectMetadataToProto ¶
func ObjectMetadataToProto(o *metav1.ObjectMeta) *metadatapb.ObjectMetadata
ObjectMetadataToProto converts an ObjectMeta into a proto.
func ObjectReferenceFromProto ¶
func ObjectReferenceFromProto(pb *metadatapb.ObjectReference) *v1.ObjectReference
ObjectReferenceFromProto converts a proto message to a ObjectReference.
func ObjectReferenceToProto ¶
func ObjectReferenceToProto(o *v1.ObjectReference) *metadatapb.ObjectReference
ObjectReferenceToProto converts an ObjectReference into a proto.
func OwnerReferenceFromProto ¶
func OwnerReferenceFromProto(pb *metadatapb.OwnerReference) *metav1.OwnerReference
OwnerReferenceFromProto converts a proto message to an OwnerReference.
func OwnerReferenceToProto ¶
func OwnerReferenceToProto(o *metav1.OwnerReference) *metadatapb.OwnerReference
OwnerReferenceToProto converts an OwnerReference into a proto.
func PIDFromUPID ¶
PIDFromUPID gets the PID from the UPID.
func PodFromProto ¶
func PodFromProto(pb *metadatapb.Pod) *v1.Pod
PodFromProto converts a proto message to a Pod.
func PodSpecFromProto ¶
func PodSpecFromProto(pb *metadatapb.PodSpec) *v1.PodSpec
PodSpecFromProto converts a proto message to a PodSpec.
func PodSpecToProto ¶
func PodSpecToProto(ps *v1.PodSpec) *metadatapb.PodSpec
PodSpecToProto converts an PodSpec into a proto.
func PodStatusFromProto ¶
func PodStatusFromProto(pb *metadatapb.PodStatus) *v1.PodStatus
PodStatusFromProto converts a proto message to a PodStatus.
func PodStatusToProto ¶
func PodStatusToProto(ps *v1.PodStatus) *metadatapb.PodStatus
PodStatusToProto converts an PodStatus into a proto.
func PodTemplateSpecToProto ¶
func PodTemplateSpecToProto(ts v1.PodTemplateSpec) *metadatapb.PodTemplateSpec
PodTemplateSpecToProto converts a k8s pod template spec to proto.
func PodToProto ¶
func PodToProto(p *v1.Pod) *metadatapb.Pod
PodToProto converts a Pod into a proto.
func ReplicaSetSpecToProto ¶
func ReplicaSetSpecToProto(rs *apps.ReplicaSetSpec) *metadatapb.ReplicaSetSpec
ReplicaSetSpecToProto converts a k8s ReplicaSet spec into a proto.
func ReplicaSetStatusToProto ¶
func ReplicaSetStatusToProto(rss *apps.ReplicaSetStatus) *metadatapb.ReplicaSetStatus
ReplicaSetStatusToProto converts a k8s ReplicaSet status into a proto.
func ReplicaSetToProto ¶
func ReplicaSetToProto(rs *apps.ReplicaSet) *metadatapb.ReplicaSet
ReplicaSetToProto converts a k8s ReplicaSet object into a proto.
func ServiceFromProto ¶
func ServiceFromProto(pb *metadatapb.Service) *v1.Service
ServiceFromProto converts a proto message to a Service.
func ServicePortFromProto ¶
func ServicePortFromProto(pb *metadatapb.ServicePort) *v1.ServicePort
ServicePortFromProto converts a proto message to a ServicePort.
func ServicePortToProto ¶
func ServicePortToProto(e *v1.ServicePort) *metadatapb.ServicePort
ServicePortToProto converts a ServicePort into a proto.
func ServiceSpecFromProto ¶
func ServiceSpecFromProto(pb *metadatapb.ServiceSpec) *v1.ServiceSpec
ServiceSpecFromProto converts a proto message to a ServiceSpec.
func ServiceSpecToProto ¶
func ServiceSpecToProto(s *v1.ServiceSpec) *metadatapb.ServiceSpec
ServiceSpecToProto converts a ServiceSpec into a proto.
func ServiceToProto ¶
func ServiceToProto(s *v1.Service) *metadatapb.Service
ServiceToProto converts a Service into a proto.
func StartTSFromUPID ¶
StartTSFromUPID gets the start timestamp from the UPID.
func StringFromUPID ¶
StringFromUPID gets a string from the UPID.
Types ¶
This section is empty.