auth

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: BSD-3-Clause Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Package

func Package() config.ProtoCommandIface

Types

type AuthService

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

func New

func New(ctx context.Context, config *tauConfig.Node) (*AuthService, error)

func (*AuthService) ApiDomainServiceHandler added in v1.1.9

func (srv *AuthService) ApiDomainServiceHandler(ctx context.Context, st streams.Connection, body command.Body) (cr.Response, error)

****** DOMAIN ******* ApiDomainServiceHandler handles domain-related p2p stream requests

func (*AuthService) Close

func (srv *AuthService) Close() error

func (*AuthService) GitHubTokenHTTPAuth

func (srv *AuthService) GitHubTokenHTTPAuth(ctx http.Context) (interface{}, error)

func (*AuthService) GitHubTokenHTTPAuthCleanup

func (srv *AuthService) GitHubTokenHTTPAuthCleanup(ctx http.Context) (interface{}, error)

func (*AuthService) KV

func (s *AuthService) KV() kv.KVDB

func (*AuthService) Node

func (s *AuthService) Node() peer.Node

type GitHubClient added in v1.1.9

type GitHubClient interface {
	Cur() *github.Repository
	Me() *github.User
	GetByID(id string) error
	GetCurrentRepository() (*github.Repository, error)
	CreateRepository(name *string, description *string, private *bool) error
	CreateDeployKey(name *string, key *string) error
	CreatePushHook(name *string, url *string, devMode bool) (int64, string, error)
	ListMyRepos() map[string]RepositoryBasicInfo
	ShortRepositoryInfo(id string) RepositoryShortInfo
}

GitHubClient defines the interface for GitHub operations

func NewGitHubClient added in v1.1.9

func NewGitHubClient(ctx context.Context, token string) (GitHubClient, error)

type ProjectCreateResponse added in v1.1.9

type ProjectCreateResponse struct {
	Project ProjectInfo `json:"project"`
}

type ProjectDeleteInfo added in v1.1.9

type ProjectDeleteInfo struct {
	ID     string `json:"id"`
	Status string `json:"status"`
}

type ProjectDeleteResponse added in v1.1.9

type ProjectDeleteResponse struct {
	Project ProjectDeleteInfo `json:"project"`
}

type ProjectDetails added in v1.1.9

type ProjectDetails struct {
	ID           string            `json:"id"`
	Name         string            `json:"name"`
	Repositories RepositoryDetails `json:"repositories"`
}

type ProjectInfo added in v1.1.9

type ProjectInfo struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type ProjectInfoResponse added in v1.1.9

type ProjectInfoResponse struct {
	Project ProjectDetails `json:"project"`
}

type ProjectResponse added in v1.1.9

type ProjectResponse struct {
	Project ProjectInfo `json:"project"`
}

type RepositoryBasicInfo added in v1.1.9

type RepositoryBasicInfo struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

RepositoryBasicInfo represents basic repository information for listing

type RepositoryDetails added in v1.1.9

type RepositoryDetails struct {
	Provider      string              `json:"provider"`
	Configuration RepositoryShortInfo `json:"configuration"`
	Code          RepositoryShortInfo `json:"code"`
}

type RepositoryInfo added in v1.1.9

type RepositoryInfo struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type RepositoryListOptions added in v1.1.9

type RepositoryListOptions github.RepositoryListOptions

type RepositoryRegistrationResponse added in v1.1.9

type RepositoryRegistrationResponse struct {
	Key string `json:"key"`
}

type RepositoryShortInfo added in v1.1.9

type RepositoryShortInfo struct {
	Name     string `json:"name"`
	FullName string `json:"fullname"`
	URL      string `json:"url"`
	ID       string `json:"id"`
	Error    string `json:"error,omitempty"`
}

RepositoryShortInfo represents basic repository information

type UserInfo added in v1.1.9

type UserInfo struct {
	Name    string `json:"name"`
	Company string `json:"company"`
	Email   string `json:"email"`
	Login   string `json:"login"`
}

type UserProjectsResponse added in v1.1.9

type UserProjectsResponse struct {
	Projects []ProjectInfo `json:"projects"`
}

type UserRepositoriesResponse added in v1.1.9

type UserRepositoriesResponse struct {
	Repositories map[string]RepositoryInfo `json:"repositories"`
}

type UserResponse added in v1.1.9

type UserResponse struct {
	User UserInfo `json:"user"`
}

Directories

Path Synopsis
acme

Jump to

Keyboard shortcuts

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