scmclients

package
v0.0.0-...-305ec12 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2015 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubClient

type GithubClient struct {
	SCMCoordinates
}

func (GithubClient) GetRefs

func (gh GithubClient) GetRefs(owner, repository string) ([]v1.Ref, error)

type GithubObject

type GithubObject struct {
	Type string `json:"type"`
}

type GithubRef

type GithubRef struct {
	Ref    string       `json:"ref"`
	Object GithubObject `json:"object"`
}

type MockScmClient

type MockScmClient struct {
	Team       string
	Repository string
	Branches   []v1.Ref
	Err        error
}

func (*MockScmClient) GetRefs

func (c *MockScmClient) GetRefs(team, repo string) ([]v1.Ref, error)

type SCMClient

type SCMClient interface {
	GetRefs(team, repository string) ([]v1.Ref, error)
}

func NewGithubClient

func NewGithubClient(baseURL, clientID, clientSecret string) SCMClient

type SCMCoordinates

type SCMCoordinates struct {
	Username string
	Password string
	BaseURL  string
	// contains filtered or unexported fields
}

ScmCoordinates models the data associated with a Git http client.

type StashBranch

type StashBranch struct {
	ID              string `json:"id"`
	DisplayID       string `json:"displayId"`
	LatestChangeSet string `json:"latestChangeset"`
	IsDefault       bool   `json:"isDefault"`
}

type StashBranches

type StashBranches struct {
	IsLastPage    bool          `json:"isLastPage"`
	Size          int           `json:"size"`
	Start         int           `json:"start"`
	NextPageStart int           `json:"nextPageStart"`
	Branch        []StashBranch `json:"values"`
}

Jump to

Keyboard shortcuts

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