scm

package
v0.12.69 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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