auth

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: 6 Imported by: ? modules, 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

This section is empty.

Functions

This section is empty.

Types

type BitbucketHook

type BitbucketHook struct {
	Id string
}

type Caller added in v1.2.0

type Caller interface {
	Me() *github.User
}

Caller is the part of a git client that says who is asking. It is the whole input an identity provider gets: enough to identify the caller, and nothing with which to act on their behalf.

type Client

type Client interface {
	InjectStaticCertificate(domain string, data []byte) error
	GetCertificate(domain string) (*tls.Certificate, error)
	GetStaticCertificate(domain string) (*tls.Certificate, error)
	GetRawCertificate(domain string) ([]byte, error)
	GetRawStaticCertificate(domain string) ([]byte, error)
	RegisterDomain(fqdn, projectID string) (*DomainRegistration, error)
	Hooks() Hooks
	Projects() Projects
	Repositories() Repositories
	Stats() Stats // TODO: rename State
	Peers(...peerCore.ID) Client
	Close()
}

type DomainRegistration added in v1.1.9

type DomainRegistration struct {
	Token string `json:"token"`
	Entry string `json:"entry"`
	Type  string `json:"type"`
}

type GithubHook

type GithubHook struct {
	Id       string
	GithubId int
	Secret   string
}

func (*GithubHook) Bitbucket

func (h *GithubHook) Bitbucket() (*BitbucketHook, error)

func (*GithubHook) Github

func (h *GithubHook) Github() (*GithubHook, error)

type GithubRepositories

type GithubRepositories interface {
	New(obj map[string]interface{}) (GithubRepository, error)
	Get(id int) (GithubRepository, error)
	List() ([]string, error)
	Register(repoID string) (string, error)
}

type GithubRepository

type GithubRepository interface {
	Repository
	PrivateKey() string
	Project() string
}

type Hook

type Hook interface {
	Github() (*GithubHook, error)
	Bitbucket() (*BitbucketHook, error)
}

type Hooks

type Hooks interface {
	Get(hook_id string) (Hook, error)
	New(obj map[string]interface{}) (Hook, error)
	List() ([]string, error)
}

type Project

type Project struct {
	Client
	Id       string
	Name     string
	Provider string
	Git      struct {
		Config Repository
		Code   Repository
	}
}

type Projects

type Projects interface {
	New(obj map[string]interface{}) *Project
	Get(project_id string) *Project
	List() ([]string, error)
	Create(name, configRepoID, codeRepoID string) error
}

type Repositories

type Repositories interface {
	Github() GithubRepositories
}

type Repository

type Repository interface {
	PrivateKey() string
	Id() int
}

type Service

type Service interface {
	services.DBService
	services.GitHubAuth
}

type Stats

type Stats interface {
	Database() (kvdb.Stats, error)
}

Jump to

Keyboard shortcuts

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