Documentation ¶
Index ¶
- type CreateArgs
- type CreateReply
- type DeleteArgs
- type DeleteReply
- type ImportArgs
- type ImportReply
- type PullArgs
- type PullReply
- type PushArgs
- type PushReply
- type SearchArgs
- type SearchReply
- type Service
- func (s *Service) Create(args *CreateArgs, reply *CreateReply) error
- func (s *Service) Delete(args *DeleteArgs, reply *DeleteReply) error
- func (s *Service) Import(args *ImportArgs, reply *ImportReply) error
- func (s *Service) Pull(args *PullArgs, reply *PullReply) error
- func (s *Service) Push(args *PushArgs, reply *PushReply) error
- func (s *Service) Search(args *SearchArgs, reply *SearchReply) error
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 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 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 ¶
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) Search ¶
func (s *Service) Search(args *SearchArgs, reply *SearchReply) error
Search returns the repository at the given remote path.
Click to show internal directories.
Click to hide internal directories.