scmclients

package
v0.0.0-...-7d5e071 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 8 Imported by: 0

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 NewGithub

func NewGithub(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