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 WithFinalizeSupport(finalize 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 DroneConfigCombiner
- type KeyOnlyMap
- type LoadedDroneConfig
- 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 WithFinalizeSupport ¶ added in v0.4.6
WithFinalizeSupport adds dependencies to all pipelines to a user provider pipelined named `finalize`
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
type DroneConfigCombiner ¶ added in v0.4.6
type DroneConfigCombiner struct {
LoadedConfigs []*LoadedDroneConfig
}
DroneConfigCombiner holds multiple LoadedDroneConfigs to combine them
func (*DroneConfigCombiner) Append ¶ added in v0.4.6
func (dcc *DroneConfigCombiner) Append(ldc *LoadedDroneConfig)
Append adds a new LoadedDroneConfig
func (*DroneConfigCombiner) Combine ¶ added in v0.4.6
func (dcc *DroneConfigCombiner) Combine(mondifyFinalizeConfig bool) string
Combine concats all appended configs in to a single string
func (*DroneConfigCombiner) ConfigNames ¶ added in v0.4.6
func (dcc *DroneConfigCombiner) ConfigNames(without KeyOnlyMap) []string
ConfigNames loads the names of all Pipelines as map keys
func (*DroneConfigCombiner) Merge ¶ added in v0.4.6
func (dcc *DroneConfigCombiner) Merge(left *DroneConfigCombiner)
Merge merges `left` into current DroneConfigCombiner
type KeyOnlyMap ¶ added in v0.4.6
type KeyOnlyMap map[string]interface{}
KeyOnlyMap is a map with only keys
type LoadedDroneConfig ¶ added in v0.4.6
LoadedDroneConfig holds the name and the string content of a `.drone.yml` file