Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( BuiltInFactories = []Factory{ FileContentFactory{}, FileFactory{}, GitlabCodeSearchFactory{}, JqFactory{}, RepositoryFactory{}, XpathFactory{}, } )
Functions ¶
This section is empty.
Types ¶
type CreateOptions ¶ added in v0.18.0
CreateOptions defines additional dependencies or values of Factory.
type FileContent ¶
func (*FileContent) String ¶
func (fcl *FileContent) String() string
type FileContentFactory ¶
type FileContentFactory struct{}
func (FileContentFactory) CreatePostClone ¶ added in v0.18.0
func (f FileContentFactory) CreatePostClone(_ CreateOptions, params params.Params) (Filter, error)
func (FileContentFactory) CreatePreClone ¶ added in v0.18.0
func (f FileContentFactory) CreatePreClone(opts CreateOptions, params params.Params) (Filter, error)
func (FileContentFactory) Name ¶
func (f FileContentFactory) Name() string
type FileFactory ¶
type FileFactory struct{}
func (FileFactory) CreatePostClone ¶ added in v0.18.0
func (f FileFactory) CreatePostClone(_ CreateOptions, params params.Params) (Filter, error)
func (FileFactory) CreatePreClone ¶ added in v0.18.0
func (f FileFactory) CreatePreClone(opts CreateOptions, params params.Params) (Filter, error)
func (FileFactory) Name ¶
func (f FileFactory) Name() string
type FilterRepository ¶
type FilterRepository interface { Host() host.HostDetail ID() int64 Name() string Owner() string }
type GitlabCodeSearch ¶ added in v0.18.0
type GitlabCodeSearch struct { GroupID any Host host.GitLabSearcher Query string // contains filtered or unexported fields }
GitlabCodeSearch filters repositories. It executes a code search query against GitLab and stores the IDs of the projects returned. A repository matches if the list of IDs contains the ID of the repository.
func (*GitlabCodeSearch) Do ¶ added in v0.18.0
func (s *GitlabCodeSearch) Do(ctx context.Context) (bool, error)
Do implements Filter.
func (*GitlabCodeSearch) String ¶ added in v0.18.0
func (s *GitlabCodeSearch) String() string
String implements Filter.
type GitlabCodeSearchFactory ¶ added in v0.18.0
type GitlabCodeSearchFactory struct{}
GitlabCodeSearchFactory creates gitlabCodeSearch filters.
func (GitlabCodeSearchFactory) CreatePostClone ¶ added in v0.18.0
func (f GitlabCodeSearchFactory) CreatePostClone(_ CreateOptions, _ params.Params) (Filter, error)
func (GitlabCodeSearchFactory) CreatePreClone ¶ added in v0.18.0
func (f GitlabCodeSearchFactory) CreatePreClone(opts CreateOptions, params params.Params) (Filter, error)
Create implements Factory.
func (GitlabCodeSearchFactory) Name ¶ added in v0.18.0
func (f GitlabCodeSearchFactory) Name() string
Name implements Factory.
type Jq ¶ added in v0.15.0
Jq is a filter that applies a jq expression to a file in the repository.
type JqFactory ¶ added in v0.15.0
type JqFactory struct{}
JqFactory creates jq filters.
func (JqFactory) CreatePostClone ¶ added in v0.18.0
Create implements Factory.
func (JqFactory) CreatePreClone ¶ added in v0.18.0
type Repository ¶
func (*Repository) String ¶
func (r *Repository) String() string
type RepositoryFactory ¶
type RepositoryFactory struct{}
func (RepositoryFactory) CreatePostClone ¶ added in v0.18.0
func (f RepositoryFactory) CreatePostClone(_ CreateOptions, params params.Params) (Filter, error)
func (RepositoryFactory) CreatePreClone ¶ added in v0.18.0
func (f RepositoryFactory) CreatePreClone(_ CreateOptions, params params.Params) (Filter, error)
func (RepositoryFactory) Name ¶
func (f RepositoryFactory) Name() string
type Reverse ¶
type Reverse struct {
// contains filtered or unexported fields
}
Reverse takes the result of a wrapped filter and returns the opposite.
type Xpath ¶ added in v0.13.0
Xpath filters repositories by applying an XPath expression to a file in the repository.
type XpathFactory ¶ added in v0.13.0
type XpathFactory struct{}
XpathFactory creates Xpath filters.
func (XpathFactory) CreatePostClone ¶ added in v0.18.0
func (f XpathFactory) CreatePostClone(_ CreateOptions, params params.Params) (Filter, error)
Create implements Factory.
func (XpathFactory) CreatePreClone ¶ added in v0.18.0
func (f XpathFactory) CreatePreClone(_ CreateOptions, params params.Params) (Filter, error)
func (XpathFactory) Name ¶ added in v0.13.0
func (f XpathFactory) Name() string
Name implements Factory.