Documentation ¶
Index ¶
- type Config
- func (c *Config) GetInterfaceConfig(ctx context.Context, packageName string, interfaceName string) ([]*Config, error)
- func (c *Config) GetPackageConfig(ctx context.Context, packageName string) (*Config, error)
- func (c *Config) GetPackages(ctx context.Context) ([]string, error)
- func (c *Config) ShouldGenerateInterface(ctx context.Context, packageName, interfaceName string) (bool, error)
- type Interface
- type Package
- type Packages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { All bool `mapstructure:"all"` BuildTags string `mapstructure:"tags"` Case string `mapstructure:"case"` Config string `mapstructure:"config"` Cpuprofile string `mapstructure:"cpuprofile"` Dir string `mapstructure:"dir"` DisableConfigSearch bool `mapstructure:"disable-config-search"` DisableVersionString bool `mapstructure:"disable-version-string"` DryRun bool `mapstructure:"dry-run"` Exported bool `mapstructure:"exported"` FileName string `mapstructure:"filename"` InPackage bool `mapstructure:"inpackage"` InPackageSuffix bool `mapstructure:"inpackage-suffix"` KeepTree bool `mapstructure:"keeptree"` LogLevel string `mapstructure:"log-level"` Name string `mapstructure:"name"` Note string `mapstructure:"note"` Outpkg string `mapstructure:"outpkg"` Output string `mapstructure:"output"` Packages map[string]interface{} `mapstructure:"packages"` Packageprefix string `mapstructure:"packageprefix"` Print bool `mapstructure:"print"` Profile string `mapstructure:"profile"` Quiet bool `mapstructure:"quiet"` Recursive bool `mapstructure:"recursive"` SrcPkg string `mapstructure:"srcpkg"` BoilerplateFile string `mapstructure:"boilerplate-file"` // StructName overrides the name given to the mock struct and should only be nonempty // when generating for an exact match (non regex expression in -name). StructName string `mapstructure:"structname"` TestOnly bool `mapstructure:"testonly"` UnrollVariadic bool `mapstructure:"unroll-variadic"` Version bool `mapstructure:"version"` WithExpecter bool `mapstructure:"with-expecter"` // contains filtered or unexported fields }
func (*Config) GetInterfaceConfig ¶ added in v2.21.0
func (*Config) GetPackageConfig ¶ added in v2.21.0
func (*Config) GetPackages ¶ added in v2.21.0
GetPackages returns a list of the packages that are defined in the `packages` config section.
Click to show internal directories.
Click to hide internal directories.