org

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureProvider

type AzureProvider struct {
	Org string
}

func (AzureProvider) FromURL added in v0.5.0

func (AzureProvider) FromURL(url string, typeHint string) (OrgProvider, error)

func (*AzureProvider) GetRepos

func (a *AzureProvider) GetRepos() ([]*Repo, bool, error)

type BitbucketProvider

type BitbucketProvider struct {
	Org string
}

func (BitbucketProvider) FromURL added in v0.5.0

func (BitbucketProvider) FromURL(url string, typeHint string) (OrgProvider, error)

func (*BitbucketProvider) GetRepos

func (b *BitbucketProvider) GetRepos() ([]*Repo, bool, error)

type GithubProvider

type GithubProvider struct {
	Org string
}

func (GithubProvider) FromURL added in v0.5.0

func (GithubProvider) FromURL(url string, typeHint string) (OrgProvider, error)

func (*GithubProvider) GetRepos

func (g *GithubProvider) GetRepos() ([]*Repo, bool, error)

type GitlabProvider

type GitlabProvider struct {
	User string
	Host string
}

func (GitlabProvider) FromURL added in v0.5.0

func (GitlabProvider) FromURL(url string, typeHint string) (OrgProvider, error)

func (*GitlabProvider) GetRepos

func (g *GitlabProvider) GetRepos() ([]*Repo, bool, error)

type OrgProvider

type OrgProvider interface {
	GetRepos() ([]*Repo, bool, error)
	FromURL(url string, typeHint string) (OrgProvider, error)
}

func GetProviderFromURL added in v0.5.0

func GetProviderFromURL(providers []OrgProvider, url string, typeHint string) (OrgProvider, error)

type Repo

type Repo struct {
	Name     string
	URL      string
	CloneURL string
	SSHURL   string
}

Jump to

Keyboard shortcuts

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