bitbucketserver

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConsumer added in v0.5.0

func CreateConsumer(URL string, ConsumerKey string, PrivateKey *rsa.PrivateKey) *oauth.Consumer

func New added in v0.5.0

func New(opts Opts) (remote.Remote, error)

New returns a Remote implementation that integrates with Bitbucket Server, the on-premise edition of Bitbucket Cloud, formerly known as Stash.

Types

type Config added in v0.5.0

type Config struct {
	URL        string
	Username   string
	Password   string
	SkipVerify bool
	Consumer   *oauth.Consumer
}

func (*Config) Activate added in v0.5.0

func (c *Config) Activate(u *model.User, r *model.Repo, link string) error

func (*Config) Auth added in v0.5.0

func (*Config) Auth(token, secret string) (string, error)

Auth is not supported by the Stash driver.

func (*Config) Deactivate added in v0.5.0

func (c *Config) Deactivate(u *model.User, r *model.Repo, link string) error

func (*Config) File added in v0.5.0

func (c *Config) File(u *model.User, r *model.Repo, b *model.Build, f string) ([]byte, error)

func (*Config) FileRef added in v0.6.0

func (c *Config) FileRef(u *model.User, r *model.Repo, ref, f string) ([]byte, error)

func (*Config) Hook added in v0.5.0

func (c *Config) Hook(r *http.Request) (*model.Repo, *model.Build, error)

func (*Config) Login added in v0.5.0

func (c *Config) Login(res http.ResponseWriter, req *http.Request) (*model.User, error)

func (*Config) Netrc added in v0.5.0

func (c *Config) Netrc(user *model.User, r *model.Repo) (*model.Netrc, error)

func (*Config) Perm added in v0.5.0

func (c *Config) Perm(u *model.User, owner, repo string) (*model.Perm, error)

func (*Config) Repo added in v0.5.0

func (c *Config) Repo(u *model.User, owner, name string) (*model.Repo, error)

func (*Config) Repos added in v0.5.0

func (c *Config) Repos(u *model.User) ([]*model.RepoLite, error)

func (*Config) Status added in v0.5.0

func (c *Config) Status(u *model.User, r *model.Repo, b *model.Build, link string) error

Status is not supported by the bitbucketserver driver.

func (*Config) TeamPerm added in v0.5.0

func (*Config) TeamPerm(u *model.User, org string) (*model.Perm, error)

TeamPerm is not supported by the Stash driver.

func (*Config) Teams added in v0.5.0

func (*Config) Teams(u *model.User) ([]*model.Team, error)

Teams is not supported by the Stash driver.

type Opts added in v0.5.0

type Opts struct {
	URL               string // Stash server url.
	Username          string // Git machine account username.
	Password          string // Git machine account password.
	ConsumerKey       string // Oauth1 consumer key.
	ConsumerRSA       string // Oauth1 consumer key file.
	ConsumerRSAString string
	SkipVerify        bool // Skip ssl verification.
}

Opts defines configuration options.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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