monohub

package
v0.0.0-...-1054e26 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package monohub is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var HookStatus_name = map[int32]string{
	0: "OK",
	1: "ERROR",
}
View Source
var HookStatus_value = map[string]int32{
	"OK":    0,
	"ERROR": 1,
}

Functions

func RegisterGitHooksServer

func RegisterGitHooksServer(s *grpc.Server, srv GitHooksServer)

func RegisterMonoHubHandler

func RegisterMonoHubHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMonoHubHandler registers the http handlers for service MonoHub to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMonoHubHandlerClient

func RegisterMonoHubHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MonoHubClient) error

RegisterMonoHubHandlerClient registers the http handlers for service MonoHub to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MonoHubClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MonoHubClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MonoHubClient" to call the correct interceptors.

func RegisterMonoHubHandlerFromEndpoint

func RegisterMonoHubHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMonoHubHandlerFromEndpoint is same as RegisterMonoHubHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMonoHubServer

func RegisterMonoHubServer(s *grpc.Server, srv MonoHubServer)

Types

type Author

type Author struct {
	Id                   int64                `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Login                string               `protobuf:"bytes,2,opt,name=login" json:"login,omitempty"`
	Name                 string               `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	Email                string               `protobuf:"bytes,4,opt,name=email" json:"email,omitempty"`
	Date                 *timestamp.Timestamp `protobuf:"bytes,5,opt,name=date" json:"date,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Author) Descriptor

func (*Author) Descriptor() ([]byte, []int)

func (*Author) GetDate

func (m *Author) GetDate() *timestamp.Timestamp

func (*Author) GetEmail

func (m *Author) GetEmail() string

func (*Author) GetId

func (m *Author) GetId() int64

func (*Author) GetLogin

func (m *Author) GetLogin() string

func (*Author) GetName

func (m *Author) GetName() string

func (*Author) ProtoMessage

func (*Author) ProtoMessage()

func (*Author) Reset

func (m *Author) Reset()

func (*Author) String

func (m *Author) String() string

func (*Author) XXX_DiscardUnknown

func (m *Author) XXX_DiscardUnknown()

func (*Author) XXX_Marshal

func (m *Author) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Author) XXX_Merge

func (dst *Author) XXX_Merge(src proto.Message)

func (*Author) XXX_Size

func (m *Author) XXX_Size() int

func (*Author) XXX_Unmarshal

func (m *Author) XXX_Unmarshal(b []byte) error

type BlobRequest

type BlobRequest struct {
	Sha                  string   `protobuf:"bytes,1,opt,name=sha" json:"sha,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlobRequest) Descriptor

func (*BlobRequest) Descriptor() ([]byte, []int)

func (*BlobRequest) GetSha

func (m *BlobRequest) GetSha() string

func (*BlobRequest) ProtoMessage

func (*BlobRequest) ProtoMessage()

func (*BlobRequest) Reset

func (m *BlobRequest) Reset()

func (*BlobRequest) String

func (m *BlobRequest) String() string

func (*BlobRequest) XXX_DiscardUnknown

func (m *BlobRequest) XXX_DiscardUnknown()

func (*BlobRequest) XXX_Marshal

func (m *BlobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlobRequest) XXX_Merge

func (dst *BlobRequest) XXX_Merge(src proto.Message)

func (*BlobRequest) XXX_Size

func (m *BlobRequest) XXX_Size() int

func (*BlobRequest) XXX_Unmarshal

func (m *BlobRequest) XXX_Unmarshal(b []byte) error

type BlobResponse

type BlobResponse struct {
	Sha                  string   `protobuf:"bytes,1,opt,name=sha" json:"sha,omitempty"`
	Content              string   `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"`
	Encoding             string   `protobuf:"bytes,3,opt,name=encoding" json:"encoding,omitempty"`
	Url                  string   `protobuf:"bytes,4,opt,name=url" json:"url,omitempty"`
	Size                 int64    `protobuf:"varint,5,opt,name=size" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlobResponse) Descriptor

func (*BlobResponse) Descriptor() ([]byte, []int)

func (*BlobResponse) GetContent

func (m *BlobResponse) GetContent() string

func (*BlobResponse) GetEncoding

func (m *BlobResponse) GetEncoding() string

func (*BlobResponse) GetSha

func (m *BlobResponse) GetSha() string

func (*BlobResponse) GetSize

func (m *BlobResponse) GetSize() int64

func (*BlobResponse) GetUrl

func (m *BlobResponse) GetUrl() string

func (*BlobResponse) ProtoMessage

func (*BlobResponse) ProtoMessage()

func (*BlobResponse) Reset

func (m *BlobResponse) Reset()

func (*BlobResponse) String

func (m *BlobResponse) String() string

func (*BlobResponse) XXX_DiscardUnknown

func (m *BlobResponse) XXX_DiscardUnknown()

func (*BlobResponse) XXX_Marshal

func (m *BlobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlobResponse) XXX_Merge

func (dst *BlobResponse) XXX_Merge(src proto.Message)

func (*BlobResponse) XXX_Size

func (m *BlobResponse) XXX_Size() int

func (*BlobResponse) XXX_Unmarshal

func (m *BlobResponse) XXX_Unmarshal(b []byte) error

type Commit

type Commit struct {
	Committer            *Author  `protobuf:"bytes,2,opt,name=committer" json:"committer,omitempty"`
	Message              string   `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	Tree                 *Tree    `protobuf:"bytes,4,opt,name=tree" json:"tree,omitempty"`
	Author               *Author  `protobuf:"bytes,5,opt,name=author" json:"author,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Commit) Descriptor

func (*Commit) Descriptor() ([]byte, []int)

func (*Commit) GetAuthor

func (m *Commit) GetAuthor() *Author

func (*Commit) GetCommitter

func (m *Commit) GetCommitter() *Author

func (*Commit) GetMessage

func (m *Commit) GetMessage() string

func (*Commit) GetTree

func (m *Commit) GetTree() *Tree

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) Reset

func (m *Commit) Reset()

func (*Commit) String

func (m *Commit) String() string

func (*Commit) XXX_DiscardUnknown

func (m *Commit) XXX_DiscardUnknown()

func (*Commit) XXX_Marshal

func (m *Commit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Commit) XXX_Merge

func (dst *Commit) XXX_Merge(src proto.Message)

func (*Commit) XXX_Size

func (m *Commit) XXX_Size() int

func (*Commit) XXX_Unmarshal

func (m *Commit) XXX_Unmarshal(b []byte) error

type CommitRequest

type CommitRequest struct {
	Sha                  string   `protobuf:"bytes,1,opt,name=sha" json:"sha,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CommitRequest) Descriptor

func (*CommitRequest) Descriptor() ([]byte, []int)

func (*CommitRequest) GetSha

func (m *CommitRequest) GetSha() string

func (*CommitRequest) ProtoMessage

func (*CommitRequest) ProtoMessage()

func (*CommitRequest) Reset

func (m *CommitRequest) Reset()

func (*CommitRequest) String

func (m *CommitRequest) String() string

func (*CommitRequest) XXX_DiscardUnknown

func (m *CommitRequest) XXX_DiscardUnknown()

func (*CommitRequest) XXX_Marshal

func (m *CommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommitRequest) XXX_Merge

func (dst *CommitRequest) XXX_Merge(src proto.Message)

func (*CommitRequest) XXX_Size

func (m *CommitRequest) XXX_Size() int

func (*CommitRequest) XXX_Unmarshal

func (m *CommitRequest) XXX_Unmarshal(b []byte) error

type CommitResponse

type CommitResponse struct {
	Sha                  string    `protobuf:"bytes,1,opt,name=sha" json:"sha,omitempty"`
	Author               *Author   `protobuf:"bytes,2,opt,name=author" json:"author,omitempty"`
	Files                []*File   `protobuf:"bytes,3,rep,name=files" json:"files,omitempty"`
	Stats                *Stats    `protobuf:"bytes,4,opt,name=stats" json:"stats,omitempty"`
	Parents              []*Parent `protobuf:"bytes,5,rep,name=parents" json:"parents,omitempty"`
	Commit               *Commit   `protobuf:"bytes,6,opt,name=commit" json:"commit,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*CommitResponse) Descriptor

func (*CommitResponse) Descriptor() ([]byte, []int)

func (*CommitResponse) GetAuthor

func (m *CommitResponse) GetAuthor() *Author

func (*CommitResponse) GetCommit

func (m *CommitResponse) GetCommit() *Commit

func (*CommitResponse) GetFiles

func (m *CommitResponse) GetFiles() []*File

func (*CommitResponse) GetParents

func (m *CommitResponse) GetParents() []*Parent

func (*CommitResponse) GetSha

func (m *CommitResponse) GetSha() string

func (*CommitResponse) GetStats

func (m *CommitResponse) GetStats() *Stats

func (*CommitResponse) ProtoMessage

func (*CommitResponse) ProtoMessage()

func (*CommitResponse) Reset

func (m *CommitResponse) Reset()

func (*CommitResponse) String

func (m *CommitResponse) String() string

func (*CommitResponse) XXX_DiscardUnknown

func (m *CommitResponse) XXX_DiscardUnknown()

func (*CommitResponse) XXX_Marshal

func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommitResponse) XXX_Merge

func (dst *CommitResponse) XXX_Merge(src proto.Message)

func (*CommitResponse) XXX_Size

func (m *CommitResponse) XXX_Size() int

func (*CommitResponse) XXX_Unmarshal

func (m *CommitResponse) XXX_Unmarshal(b []byte) error

type File

type File struct {
	Filename             string   `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"`
	Additions            int64    `protobuf:"varint,2,opt,name=additions" json:"additions,omitempty"`
	Changes              int64    `protobuf:"varint,3,opt,name=changes" json:"changes,omitempty"`
	Deletions            int64    `protobuf:"varint,4,opt,name=deletions" json:"deletions,omitempty"`
	Status               string   `protobuf:"bytes,5,opt,name=status" json:"status,omitempty"`
	BlobUrl              string   `protobuf:"bytes,6,opt,name=blob_url,json=blobUrl" json:"blob_url,omitempty"`
	Patch                string   `protobuf:"bytes,7,opt,name=patch" json:"patch,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*File) Descriptor

func (*File) Descriptor() ([]byte, []int)

func (*File) GetAdditions

func (m *File) GetAdditions() int64

func (*File) GetBlobUrl

func (m *File) GetBlobUrl() string

func (*File) GetChanges

func (m *File) GetChanges() int64

func (*File) GetDeletions

func (m *File) GetDeletions() int64

func (*File) GetFilename

func (m *File) GetFilename() string

func (*File) GetPatch

func (m *File) GetPatch() string

func (*File) GetStatus

func (m *File) GetStatus() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) String

func (m *File) String() string

func (*File) XXX_DiscardUnknown

func (m *File) XXX_DiscardUnknown()

func (*File) XXX_Marshal

func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*File) XXX_Merge

func (dst *File) XXX_Merge(src proto.Message)

func (*File) XXX_Size

func (m *File) XXX_Size() int

func (*File) XXX_Unmarshal

func (m *File) XXX_Unmarshal(b []byte) error

type GitHooksClient

type GitHooksClient interface {
	PreReceive(ctx context.Context, in *PreReceiveRequest, opts ...grpc.CallOption) (*HookResult, error)
}

GitHooksClient is the client API for GitHooks service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGitHooksClient

func NewGitHooksClient(cc *grpc.ClientConn) GitHooksClient

type GitHooksServer

type GitHooksServer interface {
	PreReceive(context.Context, *PreReceiveRequest) (*HookResult, error)
}

GitHooksServer is the server API for GitHooks service.

type HookResult

type HookResult struct {
	Status               HookStatus `protobuf:"varint,1,opt,name=status,enum=monohub.HookStatus" json:"status,omitempty"`
	Message              string     `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*HookResult) Descriptor

func (*HookResult) Descriptor() ([]byte, []int)

func (*HookResult) GetMessage

func (m *HookResult) GetMessage() string

func (*HookResult) GetStatus

func (m *HookResult) GetStatus() HookStatus

func (*HookResult) ProtoMessage

func (*HookResult) ProtoMessage()

func (*HookResult) Reset

func (m *HookResult) Reset()

func (*HookResult) String

func (m *HookResult) String() string

func (*HookResult) XXX_DiscardUnknown

func (m *HookResult) XXX_DiscardUnknown()

func (*HookResult) XXX_Marshal

func (m *HookResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HookResult) XXX_Merge

func (dst *HookResult) XXX_Merge(src proto.Message)

func (*HookResult) XXX_Size

func (m *HookResult) XXX_Size() int

func (*HookResult) XXX_Unmarshal

func (m *HookResult) XXX_Unmarshal(b []byte) error

type HookStatus

type HookStatus int32
const (
	HookStatus_OK    HookStatus = 0
	HookStatus_ERROR HookStatus = 1
)

func (HookStatus) EnumDescriptor

func (HookStatus) EnumDescriptor() ([]byte, []int)

func (HookStatus) String

func (x HookStatus) String() string

type MonoHubClient

type MonoHubClient interface {
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingReply, error)
	Commits(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error)
	Blobs(ctx context.Context, in *BlobRequest, opts ...grpc.CallOption) (*BlobResponse, error)
	Trees(ctx context.Context, in *TreeRequest, opts ...grpc.CallOption) (*TreeResponse, error)
	References(ctx context.Context, in *ReferenceRequest, opts ...grpc.CallOption) (*ReferenceResponse, error)
	Tags(ctx context.Context, in *TagRequest, opts ...grpc.CallOption) (*TagResponse, error)
}

MonoHubClient is the client API for MonoHub service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMonoHubClient

func NewMonoHubClient(cc *grpc.ClientConn) MonoHubClient

type MonoHubServer

MonoHubServer is the server API for MonoHub service.

type Parent

type Parent struct {
	Url                  string   `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	Sha                  string   `protobuf:"bytes,2,opt,name=sha" json:"sha,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Parent) Descriptor

func (*Parent) Descriptor() ([]byte, []int)

func (*Parent) GetSha

func (m *Parent) GetSha() string

func (*Parent) GetUrl

func (m *Parent) GetUrl() string

func (*Parent) ProtoMessage

func (*Parent) ProtoMessage()

func (*Parent) Reset

func (m *Parent) Reset()

func (*Parent) String

func (m *Parent) String() string

func (*Parent) XXX_DiscardUnknown

func (m *Parent) XXX_DiscardUnknown()

func (*Parent) XXX_Marshal

func (m *Parent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Parent) XXX_Merge

func (dst *Parent) XXX_Merge(src proto.Message)

func (*Parent) XXX_Size

func (m *Parent) XXX_Size() int

func (*Parent) XXX_Unmarshal

func (m *Parent) XXX_Unmarshal(b []byte) error

type PingReply

type PingReply struct {
	Version              string   `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingReply) Descriptor

func (*PingReply) Descriptor() ([]byte, []int)

func (*PingReply) GetVersion

func (m *PingReply) GetVersion() string

func (*PingReply) ProtoMessage

func (*PingReply) ProtoMessage()

func (*PingReply) Reset

func (m *PingReply) Reset()

func (*PingReply) String

func (m *PingReply) String() string

func (*PingReply) XXX_DiscardUnknown

func (m *PingReply) XXX_DiscardUnknown()

func (*PingReply) XXX_Marshal

func (m *PingReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingReply) XXX_Merge

func (dst *PingReply) XXX_Merge(src proto.Message)

func (*PingReply) XXX_Size

func (m *PingReply) XXX_Size() int

func (*PingReply) XXX_Unmarshal

func (m *PingReply) XXX_Unmarshal(b []byte) error

type PingRequest

type PingRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingRequest) Descriptor

func (*PingRequest) Descriptor() ([]byte, []int)

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) String

func (m *PingRequest) String() string

func (*PingRequest) XXX_DiscardUnknown

func (m *PingRequest) XXX_DiscardUnknown()

func (*PingRequest) XXX_Marshal

func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingRequest) XXX_Merge

func (dst *PingRequest) XXX_Merge(src proto.Message)

func (*PingRequest) XXX_Size

func (m *PingRequest) XXX_Size() int

func (*PingRequest) XXX_Unmarshal

func (m *PingRequest) XXX_Unmarshal(b []byte) error

type PreReceiveRequest

type PreReceiveRequest struct {
	Ops                  []*ReceiveOperation `protobuf:"bytes,1,rep,name=ops" json:"ops,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*PreReceiveRequest) Descriptor

func (*PreReceiveRequest) Descriptor() ([]byte, []int)

func (*PreReceiveRequest) GetOps

func (m *PreReceiveRequest) GetOps() []*ReceiveOperation

func (*PreReceiveRequest) ProtoMessage

func (*PreReceiveRequest) ProtoMessage()

func (*PreReceiveRequest) Reset

func (m *PreReceiveRequest) Reset()

func (*PreReceiveRequest) String

func (m *PreReceiveRequest) String() string

func (*PreReceiveRequest) XXX_DiscardUnknown

func (m *PreReceiveRequest) XXX_DiscardUnknown()

func (*PreReceiveRequest) XXX_Marshal

func (m *PreReceiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PreReceiveRequest) XXX_Merge

func (dst *PreReceiveRequest) XXX_Merge(src proto.Message)

func (*PreReceiveRequest) XXX_Size

func (m *PreReceiveRequest) XXX_Size() int

func (*PreReceiveRequest) XXX_Unmarshal

func (m *PreReceiveRequest) XXX_Unmarshal(b []byte) error

type ReceiveOperation

type ReceiveOperation struct {
	OldValue             string   `protobuf:"bytes,1,opt,name=oldValue" json:"oldValue,omitempty"`
	NewValue             string   `protobuf:"bytes,2,opt,name=newValue" json:"newValue,omitempty"`
	RefName              string   `protobuf:"bytes,3,opt,name=refName" json:"refName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReceiveOperation) Descriptor

func (*ReceiveOperation) Descriptor() ([]byte, []int)

func (*ReceiveOperation) GetNewValue

func (m *ReceiveOperation) GetNewValue() string

func (*ReceiveOperation) GetOldValue

func (m *ReceiveOperation) GetOldValue() string

func (*ReceiveOperation) GetRefName

func (m *ReceiveOperation) GetRefName() string

func (*ReceiveOperation) ProtoMessage

func (*ReceiveOperation) ProtoMessage()

func (*ReceiveOperation) Reset

func (m *ReceiveOperation) Reset()

func (*ReceiveOperation) String

func (m *ReceiveOperation) String() string

func (*ReceiveOperation) XXX_DiscardUnknown

func (m *ReceiveOperation) XXX_DiscardUnknown()

func (*ReceiveOperation) XXX_Marshal

func (m *ReceiveOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiveOperation) XXX_Merge

func (dst *ReceiveOperation) XXX_Merge(src proto.Message)

func (*ReceiveOperation) XXX_Size

func (m *ReceiveOperation) XXX_Size() int

func (*ReceiveOperation) XXX_Unmarshal

func (m *ReceiveOperation) XXX_Unmarshal(b []byte) error

type RefObject

type RefObject struct {
	Type                 string   `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	Sha                  string   `protobuf:"bytes,2,opt,name=sha" json:"sha,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RefObject) Descriptor

func (*RefObject) Descriptor() ([]byte, []int)

func (*RefObject) GetSha

func (m *RefObject) GetSha() string

func (*RefObject) GetType

func (m *RefObject) GetType() string

func (*RefObject) ProtoMessage

func (*RefObject) ProtoMessage()

func (*RefObject) Reset

func (m *RefObject) Reset()

func (*RefObject) String

func (m *RefObject) String() string

func (*RefObject) XXX_DiscardUnknown

func (m *RefObject) XXX_DiscardUnknown()

func (*RefObject) XXX_Marshal

func (m *RefObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RefObject) XXX_Merge

func (dst *RefObject) XXX_Merge(src proto.Message)

func (*RefObject) XXX_Size

func (m *RefObject) XXX_Size() int

func (*RefObject) XXX_Unmarshal

func (m *RefObject) XXX_Unmarshal(b []byte) error

type ReferenceRequest

type ReferenceRequest struct {
	Ref                  string   `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReferenceRequest) Descriptor

func (*ReferenceRequest) Descriptor() ([]byte, []int)

func (*ReferenceRequest) GetRef

func (m *ReferenceRequest) GetRef() string

func (*ReferenceRequest) ProtoMessage

func (*ReferenceRequest) ProtoMessage()

func (*ReferenceRequest) Reset

func (m *ReferenceRequest) Reset()

func (*ReferenceRequest) String

func (m *ReferenceRequest) String() string

func (*ReferenceRequest) XXX_DiscardUnknown

func (m *ReferenceRequest) XXX_DiscardUnknown()

func (*ReferenceRequest) XXX_Marshal

func (m *ReferenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReferenceRequest) XXX_Merge

func (dst *ReferenceRequest) XXX_Merge(src proto.Message)

func (*ReferenceRequest) XXX_Size

func (m *ReferenceRequest) XXX_Size() int

func (*ReferenceRequest) XXX_Unmarshal

func (m *ReferenceRequest) XXX_Unmarshal(b []byte) error

type ReferenceResponse

type ReferenceResponse struct {
	Ref                  string       `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"`
	NodeId               string       `protobuf:"bytes,2,opt,name=node_id,json=nodeId" json:"node_id,omitempty"`
	Objects              []*RefObject `protobuf:"bytes,3,rep,name=objects" json:"objects,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ReferenceResponse) Descriptor

func (*ReferenceResponse) Descriptor() ([]byte, []int)

func (*ReferenceResponse) GetNodeId

func (m *ReferenceResponse) GetNodeId() string

func (*ReferenceResponse) GetObjects

func (m *ReferenceResponse) GetObjects() []*RefObject

func (*ReferenceResponse) GetRef

func (m *ReferenceResponse) GetRef() string

func (*ReferenceResponse) ProtoMessage

func (*ReferenceResponse) ProtoMessage()

func (*ReferenceResponse) Reset

func (m *ReferenceResponse) Reset()

func (*ReferenceResponse) String

func (m *ReferenceResponse) String() string

func (*ReferenceResponse) XXX_DiscardUnknown

func (m *ReferenceResponse) XXX_DiscardUnknown()

func (*ReferenceResponse) XXX_Marshal

func (m *ReferenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReferenceResponse) XXX_Merge

func (dst *ReferenceResponse) XXX_Merge(src proto.Message)

func (*ReferenceResponse) XXX_Size

func (m *ReferenceResponse) XXX_Size() int

func (*ReferenceResponse) XXX_Unmarshal

func (m *ReferenceResponse) XXX_Unmarshal(b []byte) error

type Stats

type Stats struct {
	Additions            int64    `protobuf:"varint,1,opt,name=additions" json:"additions,omitempty"`
	Deletions            int64    `protobuf:"varint,2,opt,name=deletions" json:"deletions,omitempty"`
	Total                int64    `protobuf:"varint,3,opt,name=total" json:"total,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Stats) Descriptor

func (*Stats) Descriptor() ([]byte, []int)

func (*Stats) GetAdditions

func (m *Stats) GetAdditions() int64

func (*Stats) GetDeletions

func (m *Stats) GetDeletions() int64

func (*Stats) GetTotal

func (m *Stats) GetTotal() int64

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) Reset

func (m *Stats) Reset()

func (*Stats) String

func (m *Stats) String() string

func (*Stats) XXX_DiscardUnknown

func (m *Stats) XXX_DiscardUnknown()

func (*Stats) XXX_Marshal

func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stats) XXX_Merge

func (dst *Stats) XXX_Merge(src proto.Message)

func (*Stats) XXX_Size

func (m *Stats) XXX_Size() int

func (*Stats) XXX_Unmarshal

func (m *Stats) XXX_Unmarshal(b []byte) error

type TagObject

type TagObject struct {
	Type                 string   `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	Sha                  string   `protobuf:"bytes,2,opt,name=sha" json:"sha,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TagObject) Descriptor

func (*TagObject) Descriptor() ([]byte, []int)

func (*TagObject) GetSha

func (m *TagObject) GetSha() string

func (*TagObject) GetType

func (m *TagObject) GetType() string

func (*TagObject) ProtoMessage

func (*TagObject) ProtoMessage()

func (*TagObject) Reset

func (m *TagObject) Reset()

func (*TagObject) String

func (m *TagObject) String() string

func (*TagObject) XXX_DiscardUnknown

func (m *TagObject) XXX_DiscardUnknown()

func (*TagObject) XXX_Marshal

func (m *TagObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagObject) XXX_Merge

func (dst *TagObject) XXX_Merge(src proto.Message)

func (*TagObject) XXX_Size

func (m *TagObject) XXX_Size() int

func (*TagObject) XXX_Unmarshal

func (m *TagObject) XXX_Unmarshal(b []byte) error

type TagRequest

type TagRequest struct {
	Sha                  string   `protobuf:"bytes,1,opt,name=sha" json:"sha,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TagRequest) Descriptor

func (*TagRequest) Descriptor() ([]byte, []int)

func (*TagRequest) GetSha

func (m *TagRequest) GetSha() string

func (*TagRequest) ProtoMessage

func (*TagRequest) ProtoMessage()

func (*TagRequest) Reset

func (m *TagRequest) Reset()

func (*TagRequest) String

func (m *TagRequest) String() string

func (*TagRequest) XXX_DiscardUnknown

func (m *TagRequest) XXX_DiscardUnknown()

func (*TagRequest) XXX_Marshal

func (m *TagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagRequest) XXX_Merge

func (dst *TagRequest) XXX_Merge(src proto.Message)

func (*TagRequest) XXX_Size

func (m *TagRequest) XXX_Size() int

func (*TagRequest) XXX_Unmarshal

func (m *TagRequest) XXX_Unmarshal(b []byte) error

type TagResponse

type TagResponse struct {
	Tag                  string     `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
	NodeId               string     `protobuf:"bytes,2,opt,name=node_id,json=nodeId" json:"node_id,omitempty"`
	Object               *TagObject `protobuf:"bytes,3,opt,name=object" json:"object,omitempty"`
	Sha                  string     `protobuf:"bytes,4,opt,name=sha" json:"sha,omitempty"`
	Message              string     `protobuf:"bytes,5,opt,name=message" json:"message,omitempty"`
	Tagger               *Tagger    `protobuf:"bytes,6,opt,name=tagger" json:"tagger,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*TagResponse) Descriptor

func (*TagResponse) Descriptor() ([]byte, []int)

func (*TagResponse) GetMessage

func (m *TagResponse) GetMessage() string

func (*TagResponse) GetNodeId

func (m *TagResponse) GetNodeId() string

func (*TagResponse) GetObject

func (m *TagResponse) GetObject() *TagObject

func (*TagResponse) GetSha

func (m *TagResponse) GetSha() string

func (*TagResponse) GetTag

func (m *TagResponse) GetTag() string

func (*TagResponse) GetTagger

func (m *TagResponse) GetTagger() *Tagger

func (*TagResponse) ProtoMessage

func (*TagResponse) ProtoMessage()

func (*TagResponse) Reset

func (m *TagResponse) Reset()

func (*TagResponse) String

func (m *TagResponse) String() string

func (*TagResponse) XXX_DiscardUnknown

func (m *TagResponse) XXX_DiscardUnknown()

func (*TagResponse) XXX_Marshal

func (m *TagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagResponse) XXX_Merge

func (dst *TagResponse) XXX_Merge(src proto.Message)

func (*TagResponse) XXX_Size

func (m *TagResponse) XXX_Size() int

func (*TagResponse) XXX_Unmarshal

func (m *TagResponse) XXX_Unmarshal(b []byte) error

type Tagger

type Tagger struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Email                string   `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Tagger) Descriptor

func (*Tagger) Descriptor() ([]byte, []int)

func (*Tagger) GetEmail

func (m *Tagger) GetEmail() string

func (*Tagger) GetName

func (m *Tagger) GetName() string

func (*Tagger) ProtoMessage

func (*Tagger) ProtoMessage()

func (*Tagger) Reset

func (m *Tagger) Reset()

func (*Tagger) String

func (m *Tagger) String() string

func (*Tagger) XXX_DiscardUnknown

func (m *Tagger) XXX_DiscardUnknown()

func (*Tagger) XXX_Marshal

func (m *Tagger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tagger) XXX_Merge

func (dst *Tagger) XXX_Merge(src proto.Message)

func (*Tagger) XXX_Size

func (m *Tagger) XXX_Size() int

func (*Tagger) XXX_Unmarshal

func (m *Tagger) XXX_Unmarshal(b []byte) error

type Tree

type Tree struct {
	Url                  string   `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	Sha                  string   `protobuf:"bytes,2,opt,name=sha" json:"sha,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Tree) Descriptor

func (*Tree) Descriptor() ([]byte, []int)

func (*Tree) GetSha

func (m *Tree) GetSha() string

func (*Tree) GetUrl

func (m *Tree) GetUrl() string

func (*Tree) ProtoMessage

func (*Tree) ProtoMessage()

func (*Tree) Reset

func (m *Tree) Reset()

func (*Tree) String

func (m *Tree) String() string

func (*Tree) XXX_DiscardUnknown

func (m *Tree) XXX_DiscardUnknown()

func (*Tree) XXX_Marshal

func (m *Tree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tree) XXX_Merge

func (dst *Tree) XXX_Merge(src proto.Message)

func (*Tree) XXX_Size

func (m *Tree) XXX_Size() int

func (*Tree) XXX_Unmarshal

func (m *Tree) XXX_Unmarshal(b []byte) error

type TreeFile

type TreeFile struct {
	Path                 string   `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
	Mode                 string   `protobuf:"bytes,2,opt,name=mode" json:"mode,omitempty"`
	Type                 string   `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
	Size                 int64    `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
	Sha                  string   `protobuf:"bytes,5,opt,name=sha" json:"sha,omitempty"`
	Url                  string   `protobuf:"bytes,6,opt,name=url" json:"url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TreeFile) Descriptor

func (*TreeFile) Descriptor() ([]byte, []int)

func (*TreeFile) GetMode

func (m *TreeFile) GetMode() string

func (*TreeFile) GetPath

func (m *TreeFile) GetPath() string

func (*TreeFile) GetSha

func (m *TreeFile) GetSha() string

func (*TreeFile) GetSize

func (m *TreeFile) GetSize() int64

func (*TreeFile) GetType

func (m *TreeFile) GetType() string

func (*TreeFile) GetUrl

func (m *TreeFile) GetUrl() string

func (*TreeFile) ProtoMessage

func (*TreeFile) ProtoMessage()

func (*TreeFile) Reset

func (m *TreeFile) Reset()

func (*TreeFile) String

func (m *TreeFile) String() string

func (*TreeFile) XXX_DiscardUnknown

func (m *TreeFile) XXX_DiscardUnknown()

func (*TreeFile) XXX_Marshal

func (m *TreeFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TreeFile) XXX_Merge

func (dst *TreeFile) XXX_Merge(src proto.Message)

func (*TreeFile) XXX_Size

func (m *TreeFile) XXX_Size() int

func (*TreeFile) XXX_Unmarshal

func (m *TreeFile) XXX_Unmarshal(b []byte) error

type TreeRequest

type TreeRequest struct {
	Sha                  string   `protobuf:"bytes,1,opt,name=sha" json:"sha,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TreeRequest) Descriptor

func (*TreeRequest) Descriptor() ([]byte, []int)

func (*TreeRequest) GetSha

func (m *TreeRequest) GetSha() string

func (*TreeRequest) ProtoMessage

func (*TreeRequest) ProtoMessage()

func (*TreeRequest) Reset

func (m *TreeRequest) Reset()

func (*TreeRequest) String

func (m *TreeRequest) String() string

func (*TreeRequest) XXX_DiscardUnknown

func (m *TreeRequest) XXX_DiscardUnknown()

func (*TreeRequest) XXX_Marshal

func (m *TreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TreeRequest) XXX_Merge

func (dst *TreeRequest) XXX_Merge(src proto.Message)

func (*TreeRequest) XXX_Size

func (m *TreeRequest) XXX_Size() int

func (*TreeRequest) XXX_Unmarshal

func (m *TreeRequest) XXX_Unmarshal(b []byte) error

type TreeResponse

type TreeResponse struct {
	Sha                  string      `protobuf:"bytes,1,opt,name=sha" json:"sha,omitempty"`
	Tree                 []*TreeFile `protobuf:"bytes,2,rep,name=tree" json:"tree,omitempty"`
	Truncated            bool        `protobuf:"varint,3,opt,name=truncated" json:"truncated,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*TreeResponse) Descriptor

func (*TreeResponse) Descriptor() ([]byte, []int)

func (*TreeResponse) GetSha

func (m *TreeResponse) GetSha() string

func (*TreeResponse) GetTree

func (m *TreeResponse) GetTree() []*TreeFile

func (*TreeResponse) GetTruncated

func (m *TreeResponse) GetTruncated() bool

func (*TreeResponse) ProtoMessage

func (*TreeResponse) ProtoMessage()

func (*TreeResponse) Reset

func (m *TreeResponse) Reset()

func (*TreeResponse) String

func (m *TreeResponse) String() string

func (*TreeResponse) XXX_DiscardUnknown

func (m *TreeResponse) XXX_DiscardUnknown()

func (*TreeResponse) XXX_Marshal

func (m *TreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TreeResponse) XXX_Merge

func (dst *TreeResponse) XXX_Merge(src proto.Message)

func (*TreeResponse) XXX_Size

func (m *TreeResponse) XXX_Size() int

func (*TreeResponse) XXX_Unmarshal

func (m *TreeResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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