dgit

package
v0.0.15-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const PrivateKeyAuthName = "private-key-auth"

Variables

This section is empty.

Functions

func NewChainTreeLoader

func NewChainTreeLoader(ctx context.Context, tupelo *tupelo.Client, nodestore nodestore.DagStore, auth transport.AuthMethod) server.Loader

func Protocol

func Protocol() string

Types

type ChainTreeLoader

type ChainTreeLoader struct {
	server.Loader
	// contains filtered or unexported fields
}

Load loads a storer.Storer given a transport.Endpoint. Returns transport.ErrRepositoryNotFound if the repository does not exist.

func (*ChainTreeLoader) Load

type Client

type Client struct {
	transport.Transport
	// contains filtered or unexported fields
}

func Default

func Default() (*Client, error)

func NewClient

func NewClient(ctx context.Context, basePath string) (*Client, error)

func NewLocalClient

func NewLocalClient(ctx context.Context) (*Client, error)

FIXME: this probably shouldn't be here

func (*Client) CreateRepoTree

func (c *Client) CreateRepoTree(ctx context.Context, endpoint *transport.Endpoint, auth transport.AuthMethod, storage string) (*consensus.SignedChainTree, error)

FIXME: this probably shouldn't be here

func (*Client) FindRepoTree

func (c *Client) FindRepoTree(ctx context.Context, repo string) (*consensus.SignedChainTree, error)

func (*Client) NewReceivePackSession

func (c *Client) NewReceivePackSession(ep *transport.Endpoint, auth transport.AuthMethod) (transport.ReceivePackSession, error)

func (*Client) NewUploadPackSession

func (c *Client) NewUploadPackSession(ep *transport.Endpoint, auth transport.AuthMethod) (transport.UploadPackSession, error)

func (*Client) RegisterAsDefault

func (c *Client) RegisterAsDefault()

type PrivateKeyAuth

type PrivateKeyAuth struct {
	transport.AuthMethod
	// contains filtered or unexported fields
}

func NewPrivateKeyAuth

func NewPrivateKeyAuth(key *ecdsa.PrivateKey) *PrivateKeyAuth

func (*PrivateKeyAuth) Key

func (a *PrivateKeyAuth) Key() *ecdsa.PrivateKey

func (*PrivateKeyAuth) Name

func (a *PrivateKeyAuth) Name() string

func (*PrivateKeyAuth) String

func (a *PrivateKeyAuth) String() string

Jump to

Keyboard shortcuts

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