Documentation ¶
Index ¶
- func AreSameUUID(pb1, pb2 *uuidpb.UUID) bool
- func HashUUIDs(ids []uuid.UUID) string
- func IsNilUUID(u uuid.UUID) bool
- func IsNilUUIDProto(pb *uuidpb.UUID) bool
- func ProtoFromUUID(u uuid.UUID) *uuidpb.UUID
- func ProtoFromUUIDStrOrNil(u string) *uuidpb.UUID
- func ProtoToUUIDStr(pb *uuidpb.UUID) string
- func UUIDFromProto(pb *uuidpb.UUID) (uuid.UUID, error)
- func UUIDFromProtoOrNil(pb *uuidpb.UUID) uuid.UUID
- func ValidateOrgName(name string) error
- type ErrorAccumulator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreSameUUID ¶
AreSameUUID tells you if the two protos refer to the same underlying UUID.
func IsNilUUIDProto ¶
IsNilUUIDProto tells you if the given UUID is nil.
func ProtoFromUUID ¶
ProtoFromUUID converts a UUID to proto.
func ProtoFromUUIDStrOrNil ¶
ProtoFromUUIDStrOrNil generates proto from string representation of a UUID (nil value is used if parsing fails).
func ProtoToUUIDStr ¶
ProtoToUUIDStr generates an expensive string representation of a UUID proto.
func UUIDFromProto ¶
UUIDFromProto converts a proto message to uuid.
func UUIDFromProtoOrNil ¶
UUIDFromProtoOrNil converts a proto message to uuid if error sets to nil uuid.
func ValidateOrgName ¶
ValidateOrgName checks to see if the specified org name is valid or not and returns nil for valid orgs, else returns and error informing why the name is considered invalid.
Types ¶
type ErrorAccumulator ¶
type ErrorAccumulator struct {
// contains filtered or unexported fields
}
ErrorAccumulator is the struct that stores accumulated errors.
func MakeErrorAccumulator ¶
func MakeErrorAccumulator() *ErrorAccumulator
MakeErrorAccumulator constructs the ErrorAccumulator.
func (*ErrorAccumulator) AddError ¶
func (ea *ErrorAccumulator) AddError(e error)
AddError accumulates the passed in error if its not nil.
func (*ErrorAccumulator) Merge ¶
func (ea *ErrorAccumulator) Merge() error
Merge returns a merged representation of the accumulated errors.
Directories ¶
Path | Synopsis |
---|---|
artifacts
|
|
Package namesgenerator generates random names.
|
Package namesgenerator generates random names. |
shared
|
|