auth

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: BSD-3-Clause Imports: 3 Imported by: 6

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 Client

type Client interface {
	InjectStaticCertificate(domain string, data []byte) error
	GetCertificate(domain string) ([]byte, error)
	GetStaticCertificate(domain string) (*tls.Certificate, error)
	Hooks() Hooks
	Projects() Projects
	Repositories() Repositories
}

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)
}

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)
}

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
}

Jump to

Keyboard shortcuts

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