common

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: BSD-3-Clause Imports: 1 Imported by: 2 modules, 2 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

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateRepository(name string, description string, private bool) (Repository, error)
	GetByID(id string) (Repository, error)
	GetByName(owner, name string) (Repository, error)
	ListRepositories() ([]Repository, error)
	ReadConfig(owner, repo string) (*ProjectConfig, error)

	// Used to extract the inner github client
	GithubTODO() (*github.Client, error)
}

Client is the interface for the git client

type ProjectConfig

type ProjectConfig struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	Description  string `json:"description"`
	Notification struct {
		Email string `json:"email"`
	} `json:"notification"`
}

ProjectConfig is read from the config.yaml file in the configuration repository

type Repository

type Repository interface {
	Get() RepositoryGetter

	// Used to extract the inner github.Repository type
	// Note: this is a temporary solution, if you need to use this function
	// you should submit a PR to add the function to the interface
	GithubTODO() (*github.Repository, error)
}

Repository is the interface for the git repository

type RepositoryGetter

type RepositoryGetter interface {
	ID() string
	Name() string
	FullName() string
	Private() bool
}

RepositoryGetter is an interface for getting information about a repository

Jump to

Keyboard shortcuts

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