Versions in this module Expand all Collapse all v0 v0.0.2 Apr 15, 2024 Changes in this version + func ImageToCodeGeneratorRequest(image Image, parameter string, compilerVersion *pluginpb.Version, ...) (*pluginpb.CodeGeneratorRequest, error) + func ImageToFileDescriptorProtos(image Image) []*descriptorpb.FileDescriptorProto + func ImageToFileDescriptorSet(image Image) *descriptorpb.FileDescriptorSet + func ImageToProtoImage(image Image) *imagev1.Image + func ImagesToCodeGeneratorRequests(images []Image, parameter string, compilerVersion *pluginpb.Version, ...) ([]*pluginpb.CodeGeneratorRequest, error) + type Image interface + Files func() []ImageFile + GetFile func(path string) ImageFile + func CloneImage(image Image) (Image, error) + func ImageByDir(image Image) ([]Image, error) + func ImageWithOnlyPaths(image Image, paths []string, excludePaths []string) (Image, error) + func ImageWithOnlyPathsAllowNotExist(image Image, paths []string, excludePaths []string) (Image, error) + func ImageWithoutImports(image Image) Image + func MergeImages(images ...Image) (Image, error) + func NewImage(imageFiles []ImageFile) (Image, error) + func NewImageForCodeGeneratorRequest(request *pluginpb.CodeGeneratorRequest, options ...NewImageForProtoOption) (Image, error) + func NewImageForProto(protoImage *imagev1.Image, options ...NewImageForProtoOption) (Image, error) + type ImageFile interface + FileDescriptorProto func() *descriptorpb.FileDescriptorProto + IsImport func() bool + IsSyntaxUnspecified func() bool + UnusedDependencyIndexes func() []int32 + func CloneImageFile(imageFile ImageFile) (ImageFile, error) + func ImageFileWithIsImport(imageFile ImageFile, isImport bool) ImageFile + func NewImageFile(fileDescriptor protodescriptor.FileDescriptor, ...) (ImageFile, error) + type ImageModuleDependency interface + Commit func() string + IsDirect func() bool + ModuleIdentity func() bufmoduleref.ModuleIdentity + func ImageModuleDependencies(image Image) []ImageModuleDependency + type NewImageForProtoOption func(*newImageForProtoOptions) + func WithNoReparse() NewImageForProtoOption + func WithUnusedImportsComputation() NewImageForProtoOption