Documentation
¶
Index ¶
Constants ¶
View Source
const ( SshKeyType = "SshKey" OauthTokenType = "OauthToken" UsernamePasswordType = "UsernamePassword" )
View Source
const (
Master = "master"
)
Variables ¶
This section is empty.
Functions ¶
func GetSortedLanguages ¶
Types ¶
type OauthToken ¶
type OauthToken struct {
// contains filtered or unexported fields
}
func NewOauthToken ¶
func NewOauthToken(token []byte) *OauthToken
func (*OauthToken) Client ¶
func (t *OauthToken) Client() *http.Client
func (*OauthToken) GitAuthMethod ¶
func (t *OauthToken) GitAuthMethod() (transport.AuthMethod, error)
func (OauthToken) SecretType ¶
func (k OauthToken) SecretType() string
type Repository ¶
func NewRepository ¶
func NewRepository(gitSource *Source, url *url.URL) (Repository, error)
type Service ¶
func NewService ¶
func NewService(gitSource *Source, serviceCreators []ServiceCreator) (Service, error)
type ServiceCreator ¶
type Source ¶
type Source struct { // URL of the git repo URL string // Ref is a git reference. Optional. "Master" is used by default. Ref string // ContextDir is a path to subfolder in the repo. Optional. ContextDir string // HttpProxy is optional. HttpProxy string // HttpsProxy is optional. HttpsProxy string // NoProxy can be used to specify domains for which no proxying should be performed. Optional. NoProxy string // Secret refers to the credentials to access the git repo. Optional. Secret Secret // Flavor of the git provider like github, gitlab, bitbucket, generic, etc. Optional. Flavor string }
type SshKey ¶
type SshKey struct {
// contains filtered or unexported fields
}
func (*SshKey) GitAuthMethod ¶
func (k *SshKey) GitAuthMethod() (transport.AuthMethod, error)
func (SshKey) SecretType ¶
func (k SshKey) SecretType() string
type UsernamePassword ¶
type UsernamePassword struct {
// contains filtered or unexported fields
}
func NewUsernamePassword ¶
func NewUsernamePassword(username, password string) *UsernamePassword
func (*UsernamePassword) Client ¶
func (t *UsernamePassword) Client() *http.Client
func (*UsernamePassword) GitAuthMethod ¶
func (t *UsernamePassword) GitAuthMethod() (transport.AuthMethod, error)
func (UsernamePassword) SecretType ¶
func (k UsernamePassword) SecretType() string
Click to show internal directories.
Click to hide internal directories.