Documentation
¶
Overview ¶
Package migratorpb contains protos used internally by migrator.
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetGit() *Config_Git
- func (x *Config) GetProjectsRe() []string
- func (x *Config) GetTweaks() []*Config_ProjectTweaks
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Config_Git
- type Config_ProjectTweaks
- func (*Config_ProjectTweaks) Descriptor() ([]byte, []int)deprecated
- func (x *Config_ProjectTweaks) GetCc() []string
- func (x *Config_ProjectTweaks) GetProjectsRe() []string
- func (x *Config_ProjectTweaks) GetReviewer() []string
- func (*Config_ProjectTweaks) ProtoMessage()
- func (x *Config_ProjectTweaks) ProtoReflect() protoreflect.Message
- func (x *Config_ProjectTweaks) Reset()
- func (x *Config_ProjectTweaks) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_go_chromium_org_infra_tools_migrator_internal_migratorpb_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Git-related configuration. Git *Config_Git `protobuf:"bytes,1,opt,name=git,proto3" json:"git,omitempty"` // Regexps with names of projects to visit (ORed together). // // Uses https://golang.org/s/re2syntax syntax. Regexps are implicitly wrapped // into ^(...)$. // // Projects that do not match this filter are considered non-existent. // If empty, visit all projects. ProjectsRe []string `protobuf:"bytes,2,rep,name=projects_re,json=projectsRe,proto3" json:"projects_re,omitempty"` // Per-project local tweaks. Tweaks []*Config_ProjectTweaks `protobuf:"bytes,3,rep,name=tweaks,proto3" json:"tweaks,omitempty"` // contains filtered or unexported fields }
Config is migrator's own config written as a text proto to default.cfg in the migrator project directory.
func (*Config) Descriptor
deprecated
func (*Config) GetGit ¶
func (x *Config) GetGit() *Config_Git
func (*Config) GetProjectsRe ¶
func (*Config) GetTweaks ¶
func (x *Config) GetTweaks() []*Config_ProjectTweaks
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Config_Git ¶
type Config_Git struct { // A list of key-value pairs to pass to "git config ..." when initializing // local repos. // // Useful to set e.g. "user.email". Config map[string]string `` /* 139-byte string literal not displayed */ // contains filtered or unexported fields }
Git-related configuration.
func (*Config_Git) Descriptor
deprecated
func (*Config_Git) Descriptor() ([]byte, []int)
Deprecated: Use Config_Git.ProtoReflect.Descriptor instead.
func (*Config_Git) GetConfig ¶
func (x *Config_Git) GetConfig() map[string]string
func (*Config_Git) ProtoMessage ¶
func (*Config_Git) ProtoMessage()
func (*Config_Git) ProtoReflect ¶
func (x *Config_Git) ProtoReflect() protoreflect.Message
func (*Config_Git) Reset ¶
func (x *Config_Git) Reset()
func (*Config_Git) String ¶
func (x *Config_Git) String() string
type Config_ProjectTweaks ¶
type Config_ProjectTweaks struct { // Regexps with names of projects these tweaks apply to (ORed together). // // If multiple ProjectTweaks entries match a project, all matching tweaks // are applied (e.g. `reviewers` lists are joined together to get the final // set of reviewers). // // Uses https://golang.org/s/re2syntax syntax. Regexps are implicitly // wrapped into ^(...)$. ProjectsRe []string `protobuf:"bytes,1,rep,name=projects_re,json=projectsRe,proto3" json:"projects_re,omitempty"` // Emails to send CLs to instead of default OWNERS. Reviewer []string `protobuf:"bytes,2,rep,name=reviewer,proto3" json:"reviewer,omitempty"` // Emails to CC CLs to. Cc []string `protobuf:"bytes,3,rep,name=cc,proto3" json:"cc,omitempty"` // contains filtered or unexported fields }
Per-project local tweaks.
func (*Config_ProjectTweaks) Descriptor
deprecated
func (*Config_ProjectTweaks) Descriptor() ([]byte, []int)
Deprecated: Use Config_ProjectTweaks.ProtoReflect.Descriptor instead.
func (*Config_ProjectTweaks) GetCc ¶
func (x *Config_ProjectTweaks) GetCc() []string
func (*Config_ProjectTweaks) GetProjectsRe ¶
func (x *Config_ProjectTweaks) GetProjectsRe() []string
func (*Config_ProjectTweaks) GetReviewer ¶
func (x *Config_ProjectTweaks) GetReviewer() []string
func (*Config_ProjectTweaks) ProtoMessage ¶
func (*Config_ProjectTweaks) ProtoMessage()
func (*Config_ProjectTweaks) ProtoReflect ¶
func (x *Config_ProjectTweaks) ProtoReflect() protoreflect.Message
func (*Config_ProjectTweaks) Reset ¶
func (x *Config_ProjectTweaks) Reset()
func (*Config_ProjectTweaks) String ¶
func (x *Config_ProjectTweaks) String() string
Click to show internal directories.
Click to hide internal directories.