# Packages
Package cidr calculates CIDR network.
# Functions
CertToPEM converts a certificate to PEM format.
ConvertPEMCertToX509 converts a PEM certificate to x509.
ConvertPEMPrivateKeyToX509 converts a PEM private key to x509.
CreateOrUpdate creates or updates the object.
No description provided by the author
CsrToPEM converts a CSR to PEM format.
DecodeYamlToUnstructured decodes YAML to Unstructured.
No description provided by the author
ErrorListToError converts a list of errors to a single error.
EvaluateTemplate evaluates the given template with the given data and returns the result as a string.
FilterByIPFamily filters the given list of IPs by the IPFamilyPolicy of the given service.
GatewayCodebasePath get the codebase URL for the gateway in specified namespace inherit hierarchy: /base/gateways -> /local/gateways -> /local/gw/[ns]/[name].
GetDefaultGatewaysPath returns the path to the gateways codebase.
GetDefaultIngressPath returns the path to the ingress codebase.
GetDefaultServicesPath returns the path to the services codebase.
GetEnv is a convenience wrapper for os.Getenv() with additional default value return when empty or unset.
GetIPFromContext obtains the IP address of the caller from the context.
GetLastChunkOfSlashed splits a string by slash and returns the last chunk.
GetSecretDataHash returns a hash of the given secret data.
GrpcServe starts the gRPC server passed.
Hash calculates an FNV-1 hash from a given byte array.
HashFromString calculates an FNV-1 hash from a given string, returns it as a uint64 and error, if any.
ImagePullPolicyByTag returns the pull policy for the given image tag.
IngressCodebasePath returns the path to the ingress codebase.
Int2IP16 converts uint64 to ipv6.
Int2IP4 converts uint32 to ipv4.
IP2Int converts ip addr to int.
No description provided by the author
IsPodStatusConditionPresentAndEqual returns true if the pod has the given condition and status.
IsPodStatusConditionTrue returns true if the pod is ready.
NamespacedIngressCodebasePath returns the path to the ingress codebase for the given namespace.
NewGrpc creates a new gRPC server.
ParseEnabled parses the given string to a boolean value.
ParseImageName parses a docker image string into three parts: repo, tag and digest.
No description provided by the author
PrettyJSON Unmarshals and Marshall again with Indent so it is human readable.
RegisterExitHandlers registers a shutdown function to be called when a signal is received.
RegisterOSExitHandlers registers a shutdown function to be called when a signal is received.
RSAKeyToPEM converts a RSA private key to PEM format.
SecretNamespaceAndName returns the namespace and name of the secret.
SimpleHash returns a hash string of the given object.
StringsEqual compares two string slices and returns true if they are equal.
SvcAccountToK8sSvcAccount converts a Kubernetes service to a MeshService.
ValidateClient ensures that the connected client is authorized to connect to the gRPC server.