Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build creates a minimal configuration setup with no options and returns it with cleanup function.
func BuildWithRepo ¶
BuildWithRepo creates a minimal configuration setup with no options. It also clones test repository at the storage and returns it with the full path to the repository.
Types ¶
type GitalyCfgBuilder ¶
type GitalyCfgBuilder struct {
// contains filtered or unexported fields
}
GitalyCfgBuilder automates creation of the gitaly configuration and filesystem structure required.
func NewGitalyCfgBuilder ¶
func NewGitalyCfgBuilder(opts ...Option) GitalyCfgBuilder
NewGitalyCfgBuilder returns gitaly configuration builder with configured set of options.
func (*GitalyCfgBuilder) Build ¶
func (gc *GitalyCfgBuilder) Build(t testing.TB) config.Cfg
Build setups required filesystem structure, creates and returns configuration of the gitaly service.
func (*GitalyCfgBuilder) BuildWithRepoAt ¶
func (gc *GitalyCfgBuilder) BuildWithRepoAt(t testing.TB, relativePath string) (config.Cfg, []*gitalypb.Repository)
BuildWithRepoAt setups required filesystem structure, creates and returns configuration of the gitaly service, clones test repository into each configured storage the provided relative path.
type Option ¶
type Option func(*GitalyCfgBuilder)
Option is a configuration option for the builder.
func WithBase ¶
WithBase allows use cfg as a template for start building on top of. override parameter signals if settings of the cfg can be overridden or not (if setting has a default value it is considered "not configured" and can be set despite flag value).
func WithPackObjectsCacheEnabled ¶ added in v14.0.10
func WithPackObjectsCacheEnabled() Option
WithPackObjectsCacheEnabled enables the pack object cache.
func WithRealLinguist ¶
func WithRealLinguist() Option
WithRealLinguist suppress stubbing of the linguist language detection.
func WithStorages ¶
WithStorages allows to configure list of storages under this gitaly instance. All storages will have a test repository by default.