auth

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, node peer.Node) (auth.Client, error)

Types

type Client

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

func (*Client) Close

func (c *Client) Close()

func (*Client) GetCertificate

func (c *Client) GetCertificate(domain string) ([]byte, error)

Getting from /acme

func (*Client) GetStaticCertificate

func (c *Client) GetStaticCertificate(domain string) (*tls.Certificate, error)

Getting from /static

func (*Client) Hooks

func (c *Client) Hooks() iface.Hooks

func (*Client) InjectKey

func (c *Client) InjectKey(domain string, data []byte) error

func (*Client) InjectStaticCertificate

func (c *Client) InjectStaticCertificate(domain string, data []byte) error

Injecting to /static

func (*Client) Peers added in v1.1.5

func (c *Client) Peers(pids ...peerCore.ID) auth.Client

func (*Client) Projects

func (c *Client) Projects() iface.Projects

func (*Client) Repositories

func (c *Client) Repositories() iface.Repositories

func (*Client) Stats added in v1.1.5

func (c *Client) Stats() iface.Stats

type GithubRepositories

type GithubRepositories Repositories

func (*GithubRepositories) Get

func (*GithubRepositories) List

func (r *GithubRepositories) List() ([]string, error)

func (*GithubRepositories) New

func (r *GithubRepositories) New(obj map[string]interface{}) (iface.GithubRepository, error)

type GithubRepository

type GithubRepository struct {
	RepositoryCommon
	Key string
}

func (*GithubRepository) PrivateKey

func (r *GithubRepository) PrivateKey() string

func (*GithubRepository) Project

func (r *GithubRepository) Project() string

type Hooks

type Hooks Client

func (*Hooks) Get

func (h *Hooks) Get(hook_id string) (iface.Hook, error)

func (*Hooks) List

func (h *Hooks) List() ([]string, error)

func (*Hooks) New

func (h *Hooks) New(obj map[string]interface{}) (iface.Hook, error)

type Projects

type Projects Client

func (*Projects) Get

func (p *Projects) Get(project_id string) *iface.Project

func (*Projects) Hooks

func (p *Projects) Hooks() iface.Hooks

func (*Projects) List

func (p *Projects) List() ([]string, error)

func (*Projects) New

func (p *Projects) New(obj map[string]interface{}) *iface.Project

type Repositories

type Repositories Client

func (*Repositories) Github

type RepositoryCommon

type RepositoryCommon struct {
	Name string
	Url  string
	// contains filtered or unexported fields
}

func (RepositoryCommon) Id

func (r RepositoryCommon) Id() int

type Stats added in v1.1.5

type Stats Client

func (*Stats) Database added in v1.1.5

func (h *Stats) Database() (kvdbIface.Stats, error)

Jump to

Keyboard shortcuts

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