Documentation
¶
Index ¶
- Constants
- func NewChainTreeLoader(ctx context.Context, tupelo *tupelo.Client, nodestore nodestore.DagStore, ...) server.Loader
- type ChainTreeLoader
- type Client
- func (c *Client) CreateRepoTree(ctx context.Context, endpoint *transport.Endpoint, auth transport.AuthMethod) (*consensus.SignedChainTree, error)
- func (c *Client) NewReceivePackSession(ep *transport.Endpoint, auth transport.AuthMethod) (transport.ReceivePackSession, error)
- func (c *Client) NewUploadPackSession(ep *transport.Endpoint, auth transport.AuthMethod) (transport.UploadPackSession, error)
- func (c *Client) RegisterAsDefault()
- type PrivateKeyAuth
Constants ¶
View Source
const PrivateKeyAuthName = "private-key-auth"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainTreeLoader ¶
Load loads a storer.Storer given a transport.Endpoint. Returns transport.ErrRepositoryNotFound if the repository does not exist.
type Client ¶
func NewLocalClient ¶
FIXME: this probably shouldn't be here
func (*Client) CreateRepoTree ¶
func (c *Client) CreateRepoTree(ctx context.Context, endpoint *transport.Endpoint, auth transport.AuthMethod) (*consensus.SignedChainTree, error)
FIXME: this probably shouldn't be here
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
Click to show internal directories.
Click to hide internal directories.