bitbucket

package
v0.0.0-...-9082c2d Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BITBUCKET_BASE = "https://api.bitbucket.org/1.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type BitbucketAuthProvider

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

func (*BitbucketAuthProvider) GetClient

func (b *BitbucketAuthProvider) GetClient() *oauth.Client

func (*BitbucketAuthProvider) GetLabel

func (b *BitbucketAuthProvider) GetLabel() string

func (*BitbucketAuthProvider) GetName

func (b *BitbucketAuthProvider) GetName() string

func (*BitbucketAuthProvider) PrepareUser

func (b *BitbucketAuthProvider) PrepareUser(creds *oauth.Credentials) (ab.Entity, string, error)

func (*BitbucketAuthProvider) ResolveUniqueID

func (b *BitbucketAuthProvider) ResolveUniqueID(db ab.DB, user ab.Entity) (string, error)

type BitbucketEmail

type BitbucketEmail struct {
	Active  bool
	Email   string
	Primary bool
}

type BitbucketUser

type BitbucketUser struct {
	Username  string
	FirstName string
	LastName  string
	IsTeam    bool
	Avatar    string
}

type BitbucketUserDelegate

type BitbucketUserDelegate interface {
	Convert(BitbucketUserResponse) ab.Entity
	ResolveUniqueID(ab.DB, ab.Entity) (string, error)
}

type BitbucketUserResponse

type BitbucketUserResponse struct {
	User BitbucketUser
}

Jump to

Keyboard shortcuts

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