Documentation ¶
Index ¶
- func New(options ...func(*Plugin)) config.Plugin
- func WithAllowListFile(file string) func(*Plugin)
- func WithAlwaysRunAll(alwaysRunAll bool) func(*Plugin)
- func WithBitBucketAuthServer(bitBucketAuthServer string) func(*Plugin)
- func WithBitBucketClient(bitBucketClient string) func(*Plugin)
- func WithBitBucketSecret(bitBucketSecret string) func(*Plugin)
- func WithCacheTTL(ttl time.Duration) func(*Plugin)
- func WithConcat(concat bool) func(*Plugin)
- func WithConsiderFile(considerFile string) func(*Plugin)
- func WithFallback(fallback bool) func(*Plugin)
- func WithGithubToken(gitHubToken string) func(*Plugin)
- func WithGitlabServer(gitLabServer string) func(*Plugin)
- func WithGitlabToken(gitLabToken string) func(*Plugin)
- func WithMaxDepth(maxDepth int) func(*Plugin)
- func WithServer(server string) func(*Plugin)
- type ConsiderData
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAllowListFile ¶ added in v0.3.10
WithAllowListFile configures with repo slug regex match list file
func WithAlwaysRunAll ¶ added in v0.4.5
WithAlwaysRunAll configures always run all enabled or disabled
func WithBitBucketAuthServer ¶ added in v0.3.3
WithBitBucketAuthServer configures an auth server
func WithBitBucketClient ¶
WithBitBucketClient configures with a bitbucket client, alternative to github
func WithBitBucketSecret ¶
WithBitBucketClient configures with a bitbucket secret, alternative to github
func WithCacheTTL ¶ added in v0.4.2
WithCacheTTL enables request/response caching and the specified TTL for each entry
func WithConcat ¶
WithConcat configures with concat enabled or disabled
func WithConsiderFile ¶ added in v0.3.11
WithConsiderFile configures with a consider file which contains references to all 'drone.yml' files which should be considered for the repository.
func WithFallback ¶
WithFallback configures with fallback enabled or disabled
func WithGithubToken ¶
WithGithubToken configures with the github token specified
func WithGitlabServer ¶ added in v0.3.5
WithGitlabServer configures with the gitlab server specified
func WithGitlabToken ¶ added in v0.3.5
WithGitlabToken configures with the gitlab token specified
func WithMaxDepth ¶
WithMaxDepth configures with max depth to search for 'drone.yml'. Requires fallback to be enabled.
func WithServer ¶
WithServer configures with a custom SCM server
Types ¶
type ConsiderData ¶ added in v0.3.11
type ConsiderData struct {
// contains filtered or unexported fields
}
ConsiderData holds the considerFile information in both list and map representations