provider

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

A Provider contains the information necessary to communicate with the renters.

func New

func New(db *sql.DB, g modules.Gateway, m modules.Manager, satelliteAddr string, muxAddr string, dir string) (*Provider, <-chan error)

New returns an initialized Provider.

func (*Provider) Alerts

func (p *Provider) Alerts() (crit, err, warn, info []modules.Alert)

Alerts implements the modules.Alerter interface for the provider.

func (*Provider) Close

func (p *Provider) Close() error

Close shuts down the provider.

func (*Provider) PublicKey

func (p *Provider) PublicKey() types.PublicKey

PublicKey returns the provider's public key.

func (*Provider) SecretKey

func (p *Provider) SecretKey() types.PrivateKey

SecretKey returns the provider's secret key.

Jump to

Keyboard shortcuts

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