repo

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateArgs

type CreateArgs struct {
	// Name is the repository name.
	Name string `json:"name"`
}

CreateArgs contains the args.

type CreateReply

type CreateReply struct {
	// Remote is the repository path
	Remote string `json:"remote"`
}

CreateReply contains the reply

type DeleteArgs

type DeleteArgs struct {
	// Name is the repository name.
	Name string `json:"name"`
}

DeleteArgs contains the args.

type DeleteReply

type DeleteReply struct{}

DeleteReply contains the reply

type ImportArgs

type ImportArgs struct {
	// Name is the repository name.
	Name string `json:"name"`
	// URL is the repository url.
	URL string `json:"url"`
	// Path is the repository directory.
	Path string `json:"path"`
}

ImportArgs contains the args.

type ImportReply

type ImportReply struct {
	// Remote is the repository path
	Remote string `json:"remote"`
}

ImportReply contains the reply

type PullArgs

type PullArgs struct {
	// Remote is the remote path.
	Remote string
	// Branch is the branch name.
	Branch string
	// Refs is a list of known references.
	Refs []cid.Cid
}

PullArgs contains the args.

type PullReply

type PullReply struct {
	// Data contains objects to add.
	Data []byte
}

PullReply contains the reply.

type PushArgs

type PushArgs struct {
	// Remote is the remote path.
	Remote string
	// branch is the branch name.
	Branch string
	// Data contains objects to add.
	Data []byte
}

PushArgs contains the args.

type PushReply

type PushReply struct{}

PushReply contains the reply.

type SearchArgs

type SearchArgs struct {
	// Remote is the remote path.
	Remote string `json"remote"`
}

SearchArgs contains the args.

type SearchReply

type SearchReply struct {
	Repository *object.Repository `json:"repository"`
}

SearchReply contains the reply.

type Service

type Service struct {
	*remote.Server
}

Service wraps a remote and provides RPC.

func (*Service) Create

func (s *Service) Create(args *CreateArgs, reply *CreateReply) error

Create creates a new repository.

func (*Service) Delete

func (s *Service) Delete(args *DeleteArgs, reply *DeleteReply) error

Delete delete an existing repository.

func (*Service) Import

func (s *Service) Import(args *ImportArgs, reply *ImportReply) error

Import imports an external repository.

func (*Service) Pull

func (s *Service) Pull(args *PullArgs, reply *PullReply) error

func (*Service) Push

func (s *Service) Push(args *PushArgs, reply *PushReply) error

func (*Service) Search

func (s *Service) Search(args *SearchArgs, reply *SearchReply) error

Search returns the repository at the given remote path.

Jump to

Keyboard shortcuts

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