Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheClientMock ¶
type CacheClientMock struct { SetFn func(key string, value interface{}, exp time.Duration) error GetFn func(key string) (string, error) DelFn func(key string) error ScanFn func(key string, action func(context.Context, string) error) error }
CacheClientMock is a mock of CacheClient
func (CacheClientMock) Get ¶
func (c CacheClientMock) Get(key string) (string, error)
Get calls GetFn
type ProviderMock ¶
ProviderMock is a mock Provider
func (ProviderMock) GetContentToPublish ¶
func (p ProviderMock) GetContentToPublish() (*domain.Content, error)
GetContentToPublish calls the GetContentToPublishFn
type PublisherMock ¶
PublisherMock is a mock Publisher
func (PublisherMock) PublishContent ¶
func (p PublisherMock) PublishContent(content *domain.Content) (bool, error)
PublishContent calls the PublishContentFn
type RepoClientMock ¶
type RepoClientMock struct { GetContentsFn func(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentGetOptions) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error) UpdateFileFn func(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentFileOptions) (*github.RepositoryContentResponse, *github.Response, error) }
func (RepoClientMock) GetContents ¶
func (rcm RepoClientMock) GetContents(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentGetOptions) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error)
func (RepoClientMock) UpdateFile ¶
func (rcm RepoClientMock) UpdateFile(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentFileOptions) (*github.RepositoryContentResponse, *github.Response, error)
type SearchClientMock ¶
type SearchClientMock struct {
RepositoriesFn func(ctx context.Context, query string, opt *github.SearchOptions) (*github.RepositoriesSearchResult, *github.Response, error)
}
SearchClientMock is the mock for the search client from Github provider
func (SearchClientMock) Repositories ¶
func (scm SearchClientMock) Repositories(ctx context.Context, query string, opt *github.SearchOptions) (*github.RepositoriesSearchResult, *github.Response, error)
Repositories calls RepositoriesFn
Click to show internal directories.
Click to hide internal directories.