package
1.2.4
Repository: https://github.com/openservicemesh/osm.git
Documentation: pkg.go.dev

# Functions

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.
GrpcServe starts the gRPC server passed.
HashFromString calculates an FNV-1 hash from a given string, returns it as a uint64 and error, if any.
NewGrpc creates a new gRPC server.
PrettyJSON Unmarshals and Marshall again with Indent so it is human readable.
ProtoToYAML converts a Proto message to it's YAML representation in bytes.
SvcAccountToK8sSvcAccount converts a Kubernetes service to a MeshService.
ValidateClient ensures that the connected client is authorized to connect to the gRPC server.
YAMLToProto converts yaml to the provided proto message.