Documentation ¶
Index ¶
- func ValidateCodeGeneratorRequest(request *pluginpb.CodeGeneratorRequest) error
- func ValidateCodeGeneratorRequestExceptFileDescriptorProtos(request *pluginpb.CodeGeneratorRequest) error
- func ValidateCodeGeneratorResponse(response *pluginpb.CodeGeneratorResponse) error
- func ValidateFileDescriptorProto(fileDescriptorProto *descriptorpb.FileDescriptorProto) error
- func ValidateFileDescriptorProtos(fileDescriptorProtos []*descriptorpb.FileDescriptorProto) error
- func ValidateProtoPath(name string, path string) error
- func ValidateProtoPaths(name string, paths []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCodeGeneratorRequest ¶
func ValidateCodeGeneratorRequest(request *pluginpb.CodeGeneratorRequest) error
ValidateCodeGeneratorRequest validates the CodeGeneratorRequest.
func ValidateCodeGeneratorRequestExceptFileDescriptorProtos ¶
func ValidateCodeGeneratorRequestExceptFileDescriptorProtos(request *pluginpb.CodeGeneratorRequest) error
ValidateCodeGeneratorRequestExceptFileDescriptorProtos validates the CodeGeneratorRequest minus the FileDescriptorProtos.
func ValidateCodeGeneratorResponse ¶
func ValidateCodeGeneratorResponse(response *pluginpb.CodeGeneratorResponse) error
ValidateCodeGeneratorResponse validates the CodeGeneratorResponse.
This validates that names are set.
It is actually OK per the plugin.proto specs to not have the name set, and if this is empty, the content should be combined with the previous file. However, for our handlers, we do not support this, and for our binary handlers, we combine CodeGeneratorResponse.File contents.
func ValidateFileDescriptorProto ¶
func ValidateFileDescriptorProto(fileDescriptorProto *descriptorpb.FileDescriptorProto) error
ValidateFileDescriptorProto validates the FileDescriptorProto.
func ValidateFileDescriptorProtos ¶
func ValidateFileDescriptorProtos(fileDescriptorProtos []*descriptorpb.FileDescriptorProto) error
ValidateFileDescriptorProtos validates the FileDescriptorProtos.
func ValidateProtoPath ¶
ValidateProtoPath validates the proto path.
This checks that the path is normalized and ends in .proto.
func ValidateProtoPaths ¶
ValidateProtoPaths validates the proto paths.
This checks that the paths are normalized and end in .proto.
Types ¶
This section is empty.