plugin

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...func(*Plugin)) config.Plugin

New creates a drone plugin

func WithBitBucketAuthServer added in v0.3.3

func WithBitBucketAuthServer(bitBucketAuthServer string) func(*Plugin)

WithBitBucketAuthServer configures an auth server

func WithBitBucketClient

func WithBitBucketClient(bitBucketClient string) func(*Plugin)

WithBitBucketClient configures with a bitbucket client, alternative to github

func WithBitBucketSecret

func WithBitBucketSecret(bitBucketSecret string) func(*Plugin)

WithBitBucketClient configures with a bitbucket secret, alternative to github

func WithConcat

func WithConcat(concat bool) func(*Plugin)

WithConcat configures with concat enabled or disabled

func WithFallback

func WithFallback(fallback bool) func(*Plugin)

WithFallback configures with fallback enabled or disabled

func WithGithubToken

func WithGithubToken(gitHubToken string) func(*Plugin)

WithGithubToken configures with the github token specified

func WithGitlabServer added in v0.3.5

func WithGitlabServer(gitLabServer string) func(*Plugin)

WithGitlabServer configures with the gitlab server specified

func WithGitlabToken added in v0.3.5

func WithGitlabToken(gitLabToken string) func(*Plugin)

WithGitlabToken configures with the gitlab token specified

func WithMaxDepth

func WithMaxDepth(maxDepth int) func(*Plugin)

WithMaxDepth configures with max depth to search for 'drone.yml'. Requires fallback to be enabled.

func WithServer

func WithServer(server string) func(*Plugin)

WithServer configures with a custom SCM server

func WithWhitelistFile

func WithWhitelistFile(whitelistFile string) func(*Plugin)

WithWhitelistFile configures with repo slug regex match list file

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (*Plugin) Find

func (p *Plugin) Find(ctx context.Context, droneRequest *config.Request) (*drone.Config, error)

Find is called by drone

func (*Plugin) NewScmClient

func (p *Plugin) NewScmClient(ctx context.Context, uuid uuid.UUID, repo drone.Repo) (scmClient scm_clients.ScmClient, err error)

NewScmClient creates a new client for the git provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL