Versions in this module Expand all Collapse all v0 v0.1.1 Dec 9, 2024 v0.1.0 Nov 26, 2024 Changes in this version + const ConfigRollout + const RolloutStage + var ErrBadConfigExtension = errors.New("bad config extension") + var ErrInvalidConfig = errors.New("config is not valid") + var ErrLoadMutable = errors.New("error opening mutable config file") + var ErrLoadStarlark = errors.New("error loading starlark file") + var ErrMainNotCallable = errors.New("`main` must be a function") + var ErrMainNotFound = errors.New("`main` function not found") + var ErrNoProtobufValue = errors.New("`main' returned a dict with non-protobuf value") + var ErrNotADictionary = errors.New("`main' returned something that's not a dict") + var ErrNotStringKey = errors.New("`main' returned a dict with non-string key") + var ErrReadMutable = errors.New("error reading from mutable config file") + var ErrStarlarkEval = errors.New("error evaluating starlark file") + var ErrorRemoteRepoNoIntegrityInfo = errors.New("missing integrity data") + var ErrorRemoteRepoNotDownloaded = errors.New("remote repo not in local cache") + var ErrorRemoteRepoValidationFailed = errors.New("failed to validate integrity") + func ProgressBarConfig(bar *pb.ProgressBar, prefix string) + type Compiler struct + MaterializedDir string + ModuleService *ModuleService + func NewCompiler(protoconfRoot string, verboseLogging bool) *Compiler + func (c *Compiler) CompileFile(filename string) error + func (c *Compiler) CompileFileAsync(ctx context.Context, cancel context.CancelCauseFunc, filename string) (chan *protoconf_pb.CompileResponse, chan error) + func (c *Compiler) GetLoader() *starlarkLoader + type ModulePath struct + Ext string + Filepath string + Repo string + func ParseModulePath(moduleName string) *ModulePath + func (m *ModulePath) String() string + type ModuleService struct + Config *module.ModuleServiceConfig + func NewModuleService(protoconfRoot string) *ModuleService + func (m *ModuleService) Add(t *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error) + func (m *ModuleService) Download(ctx context.Context, r *module.RemoteRepo) error + func (m *ModuleService) DownloadDeps(ctx context.Context, r *module.RemoteRepo) error + func (m *ModuleService) GenFileDescriptorSet(registry *utils.DescriptorRegistry, r *module.RemoteRepo) error + func (m *ModuleService) GetProtoFilesRegistry() *protoregistry.Files + func (m *ModuleService) GetProtoRegistry() *utils.DescriptorRegistry + func (m *ModuleService) Init(ctx context.Context, initFiles ...string) error + func (m *ModuleService) LoadFromLockFile() error + func (m *ModuleService) Lock() error + func (m *ModuleService) MergeLock() error + func (m *ModuleService) Sync(ctx context.Context) error + func (m *ModuleService) Validate(r *module.RemoteRepo) (string, error) + func (m *ModuleService) Walk(walkFn WalkFunction) error + type ProgressBar struct + func (cpb *ProgressBar) TrackProgress(src string, currentSize, totalSize int64, stream io.ReadCloser) io.ReadCloser + type WalkFunction func(r *module.RemoteRepo) error