code: func IsValidType(objType ObjectType) bool {
  	switch objType {
  	case EndpointObject:
  		fallthrough
  	case NetworkObject:
  		fallthrough
  	case OpaqueObject:
  		return true
  	}
  	return false
  }
docs: // IsValidType validates the passed in type against the valid object types