concourse / concourse

Exported function returning value of unexported type RVV-B0011
Anti-pattern
Critical
2 occurrences in this check
exported func NewVaultFactory returns unexported type *vault.vaultFactory, which can be annoying to use
17	loginTimeout    time.Duration
18}
19
20func NewVaultFactory(sr SecretReader, loginTimeout time.Duration, loggedIn <-chan struct{}, prefix string, prefixes []string, lookupTemplates []*creds.SecretTemplate, sharedPath string) *vaultFactory {21	factory := &vaultFactory{
22		sr:              sr,
23		prefix:          prefix,
exported func NewCredHubFactory returns unexported type *credhub.credhubFactory, which can be annoying to use
12	prefixes []string
13}
14
15func NewCredHubFactory(logger lager.Logger, credhub *LazyCredhub, prefix string, prefixes []string) *credhubFactory {16	return &credhubFactory{
17		credhub:  credhub,
18		logger:   logger,