scm

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BitbucketClientSecret string
)
View Source
var (
	GitlabClientSecret string
)

Functions

func GenerateKeys

func GenerateKeys(saveKeyFiles bool) (pub string, priv string, err error)

func Setup

func Setup() (string, error)

Types

type Bitbucket

type Bitbucket struct {
	Client *bitbucket.Client
}

func (*Bitbucket) Init

func (b *Bitbucket) Init() error

func (*Bitbucket) Setup

func (b *Bitbucket) Setup() (Context, error)

func (*Bitbucket) StarPluralGitHubRep

func (b *Bitbucket) StarPluralGitHubRep() error

type Context

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

type Github

type Github struct {
	Client *github.Client
}

func (*Github) Init

func (gh *Github) Init() error

func (*Github) Setup

func (gh *Github) Setup() (con Context, err error)

func (*Github) StarPluralGitHubRep

func (gh *Github) StarPluralGitHubRep() error

type Gitlab

type Gitlab struct {
	Client *gitlab.Client
}

func (*Gitlab) Init

func (gl *Gitlab) Init() error

func (*Gitlab) Setup

func (gl *Gitlab) Setup() (con Context, err error)

func (*Gitlab) StarPluralGitHubRep

func (gl *Gitlab) StarPluralGitHubRep() error
type Link struct {
	Name string `json:"name"`
	Href string `json:"href"`
}

type Provider

type Provider interface {
	Init() error
	Setup() (Context, error)
	StarPluralGitHubRep() error
}

type Values

type Values struct {
	Email     string `json:"email"`
	IsPrimary bool   `json:"is_primary"`
}

Jump to

Keyboard shortcuts

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