Versions in this module Expand all Collapse all v0 v0.0.2 Apr 15, 2024 Changes in this version + const DefaultDocumentationPath + const LicenseFilePath + var AllDocumentationPaths = []string + func ModuleDigestB3(ctx context.Context, module Module) (string, error) + func ModuleToBucket(ctx context.Context, module Module, writeBucket storage.WriteBucket) error + func ModuleToProtoModule(ctx context.Context, module Module) (*modulev1alpha1.Module, error) + func TargetModuleFilesToBucket(ctx context.Context, module Module, writeBucket storage.WriteBucket) error + func ValidateProtoModule(protoModule *modulev1alpha1.Module) error + type Module interface + BreakingConfig func() *bufbreakingconfig.Config + Commit func() string + DeclaredDirectDependencies func() []bufmoduleref.ModuleReference + DependencyModulePins func() []bufmoduleref.ModulePin + Documentation func() string + DocumentationPath func() string + FileSet func() bufcas.FileSet + GetModuleFile func(ctx context.Context, path string) (ModuleFile, error) + License func() string + LintConfig func() *buflintconfig.Config + ModuleIdentity func() bufmoduleref.ModuleIdentity + SourceFileInfos func(ctx context.Context) ([]bufmoduleref.FileInfo, error) + TargetFileInfos func(ctx context.Context) ([]bufmoduleref.FileInfo, error) + WorkspaceDirectory func() string + func ModuleWithExcludePaths(module Module, excludePaths []string) (Module, error) + func ModuleWithExcludePathsAllowNotExist(module Module, excludePaths []string) (Module, error) + func ModuleWithTargetPaths(module Module, targetPaths []string, excludePaths []string) (Module, error) + func ModuleWithTargetPathsAllowNotExist(module Module, targetPaths []string, excludePaths []string) (Module, error) + func NewModuleForBucket(ctx context.Context, readBucket storage.ReadBucket, options ...ModuleOption) (Module, error) + func NewModuleForFileSet(ctx context.Context, fileSet bufcas.FileSet, options ...ModuleOption) (Module, error) + func NewModuleForProto(ctx context.Context, protoModule *modulev1alpha1.Module, ...) (Module, error) + type ModuleFile interface + type ModuleFileSet interface + AllFileInfos func(ctx context.Context) ([]bufmoduleref.FileInfo, error) + func NewModuleFileSet(module Module, dependencies []Module) ModuleFileSet + type ModuleOption func(*module) + func ModuleWithModuleIdentity(moduleIdentity bufmoduleref.ModuleIdentity) ModuleOption + func ModuleWithModuleIdentityAndCommit(moduleIdentity bufmoduleref.ModuleIdentity, commit string) ModuleOption + func ModuleWithWorkspaceDirectory(workspaceDirectory string) ModuleOption + type ModuleReader interface + GetModule func(ctx context.Context, modulePin bufmoduleref.ModulePin) (Module, error) + func NewNopModuleReader() ModuleReader + type ModuleResolver interface + GetModulePin func(ctx context.Context, moduleReference bufmoduleref.ModuleReference) (bufmoduleref.ModulePin, error) + func NewNopModuleResolver() ModuleResolver + type Workspace interface + GetModule func(moduleIdentity bufmoduleref.ModuleIdentity) (Module, bool) + GetModules func() []Module + func NewWorkspace(ctx context.Context, namedModules map[string]Module, allModules []Module) (Workspace, error)