repository

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MPL-2.0-no-copyleft-exception, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_services_repository_server_proto protoreflect.FileDescriptor

Functions

func RegisterRepositoryServer

func RegisterRepositoryServer(s *grpc.Server, srv RepositoryServer)

Types

type Bytes

type Bytes struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Bytes) Descriptor deprecated

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

Deprecated: Use Bytes.ProtoReflect.Descriptor instead.

func (*Bytes) GetValue

func (x *Bytes) GetValue() []byte

func (*Bytes) ProtoMessage

func (*Bytes) ProtoMessage()

func (*Bytes) ProtoReflect added in v0.3.0

func (x *Bytes) ProtoReflect() protoreflect.Message

func (*Bytes) Reset

func (x *Bytes) Reset()

func (*Bytes) String

func (x *Bytes) String() string

type CommentErrorRequest

type CommentErrorRequest struct {
	RepoName string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	PrID     int64  `protobuf:"varint,2,opt,name=prID,proto3" json:"prID,omitempty"`
	Error    string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CommentErrorRequest) Descriptor deprecated

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

Deprecated: Use CommentErrorRequest.ProtoReflect.Descriptor instead.

func (*CommentErrorRequest) GetError

func (x *CommentErrorRequest) GetError() string

func (*CommentErrorRequest) GetPrID

func (x *CommentErrorRequest) GetPrID() int64

func (*CommentErrorRequest) GetRepoName

func (x *CommentErrorRequest) GetRepoName() string

func (*CommentErrorRequest) ProtoMessage

func (*CommentErrorRequest) ProtoMessage()

func (*CommentErrorRequest) ProtoReflect added in v0.3.0

func (x *CommentErrorRequest) ProtoReflect() protoreflect.Message

func (*CommentErrorRequest) Reset

func (x *CommentErrorRequest) Reset()

func (*CommentErrorRequest) String

func (x *CommentErrorRequest) String() string

type ErrorStatusRequest

type ErrorStatusRequest struct {
	RepoName string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	RunName  string `protobuf:"bytes,2,opt,name=runName,proto3" json:"runName,omitempty"`
	Sha      string `protobuf:"bytes,3,opt,name=sha,proto3" json:"sha,omitempty"`
	Url      string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	Error    string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorStatusRequest) Descriptor deprecated

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

Deprecated: Use ErrorStatusRequest.ProtoReflect.Descriptor instead.

func (*ErrorStatusRequest) GetError

func (x *ErrorStatusRequest) GetError() string

func (*ErrorStatusRequest) GetRepoName

func (x *ErrorStatusRequest) GetRepoName() string

func (*ErrorStatusRequest) GetRunName

func (x *ErrorStatusRequest) GetRunName() string

func (*ErrorStatusRequest) GetSha

func (x *ErrorStatusRequest) GetSha() string

func (*ErrorStatusRequest) GetUrl

func (x *ErrorStatusRequest) GetUrl() string

func (*ErrorStatusRequest) ProtoMessage

func (*ErrorStatusRequest) ProtoMessage()

func (*ErrorStatusRequest) ProtoReflect added in v0.3.0

func (x *ErrorStatusRequest) ProtoReflect() protoreflect.Message

func (*ErrorStatusRequest) Reset

func (x *ErrorStatusRequest) Reset()

func (*ErrorStatusRequest) String

func (x *ErrorStatusRequest) String() string

type FileDiffRequest

type FileDiffRequest struct {
	RepoName string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	Base     string `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"`
	Head     string `protobuf:"bytes,3,opt,name=head,proto3" json:"head,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDiffRequest) Descriptor deprecated

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

Deprecated: Use FileDiffRequest.ProtoReflect.Descriptor instead.

func (*FileDiffRequest) GetBase

func (x *FileDiffRequest) GetBase() string

func (*FileDiffRequest) GetHead

func (x *FileDiffRequest) GetHead() string

func (*FileDiffRequest) GetRepoName

func (x *FileDiffRequest) GetRepoName() string

func (*FileDiffRequest) ProtoMessage

func (*FileDiffRequest) ProtoMessage()

func (*FileDiffRequest) ProtoReflect added in v0.3.0

func (x *FileDiffRequest) ProtoReflect() protoreflect.Message

func (*FileDiffRequest) Reset

func (x *FileDiffRequest) Reset()

func (*FileDiffRequest) String

func (x *FileDiffRequest) String() string

type FileRequest

type FileRequest struct {
	RepoName string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	Sha      string `protobuf:"bytes,2,opt,name=sha,proto3" json:"sha,omitempty"`
	Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"`
	// contains filtered or unexported fields
}

func (*FileRequest) Descriptor deprecated

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

Deprecated: Use FileRequest.ProtoReflect.Descriptor instead.

func (*FileRequest) GetFilename

func (x *FileRequest) GetFilename() string

func (*FileRequest) GetRepoName

func (x *FileRequest) GetRepoName() string

func (*FileRequest) GetSha

func (x *FileRequest) GetSha() string

func (*FileRequest) ProtoMessage

func (*FileRequest) ProtoMessage()

func (*FileRequest) ProtoReflect added in v0.3.0

func (x *FileRequest) ProtoReflect() protoreflect.Message

func (*FileRequest) Reset

func (x *FileRequest) Reset()

func (*FileRequest) String

func (x *FileRequest) String() string

type FinishedStatusRequest

type FinishedStatusRequest struct {
	RepoName string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	RunName  string `protobuf:"bytes,2,opt,name=runName,proto3" json:"runName,omitempty"`
	Sha      string `protobuf:"bytes,3,opt,name=sha,proto3" json:"sha,omitempty"`
	Url      string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	Status   bool   `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
	Msg      string `protobuf:"bytes,6,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*FinishedStatusRequest) Descriptor deprecated

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

Deprecated: Use FinishedStatusRequest.ProtoReflect.Descriptor instead.

func (*FinishedStatusRequest) GetMsg

func (x *FinishedStatusRequest) GetMsg() string

func (*FinishedStatusRequest) GetRepoName

func (x *FinishedStatusRequest) GetRepoName() string

func (*FinishedStatusRequest) GetRunName

func (x *FinishedStatusRequest) GetRunName() string

func (*FinishedStatusRequest) GetSha

func (x *FinishedStatusRequest) GetSha() string

func (*FinishedStatusRequest) GetStatus

func (x *FinishedStatusRequest) GetStatus() bool

func (*FinishedStatusRequest) GetUrl

func (x *FinishedStatusRequest) GetUrl() string

func (*FinishedStatusRequest) ProtoMessage

func (*FinishedStatusRequest) ProtoMessage()

func (*FinishedStatusRequest) ProtoReflect added in v0.3.0

func (x *FinishedStatusRequest) ProtoReflect() protoreflect.Message

func (*FinishedStatusRequest) Reset

func (x *FinishedStatusRequest) Reset()

func (*FinishedStatusRequest) String

func (x *FinishedStatusRequest) String() string

type HookSetupRequest

type HookSetupRequest struct {
	RepoName   string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	HookURL    string `protobuf:"bytes,2,opt,name=hookURL,proto3" json:"hookURL,omitempty"`
	HookSecret string `protobuf:"bytes,3,opt,name=hookSecret,proto3" json:"hookSecret,omitempty"`
	// contains filtered or unexported fields
}

func (*HookSetupRequest) Descriptor deprecated

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

Deprecated: Use HookSetupRequest.ProtoReflect.Descriptor instead.

func (*HookSetupRequest) GetHookSecret

func (x *HookSetupRequest) GetHookSecret() string

func (*HookSetupRequest) GetHookURL

func (x *HookSetupRequest) GetHookURL() string

func (*HookSetupRequest) GetRepoName

func (x *HookSetupRequest) GetRepoName() string

func (*HookSetupRequest) ProtoMessage

func (*HookSetupRequest) ProtoMessage()

func (*HookSetupRequest) ProtoReflect added in v0.3.0

func (x *HookSetupRequest) ProtoReflect() protoreflect.Message

func (*HookSetupRequest) Reset

func (x *HookSetupRequest) Reset()

func (*HookSetupRequest) String

func (x *HookSetupRequest) String() string

type HookTeardownRequest

type HookTeardownRequest struct {
	RepoName string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	HookURL  string `protobuf:"bytes,2,opt,name=hookURL,proto3" json:"hookURL,omitempty"`
	// contains filtered or unexported fields
}

func (*HookTeardownRequest) Descriptor deprecated

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

Deprecated: Use HookTeardownRequest.ProtoReflect.Descriptor instead.

func (*HookTeardownRequest) GetHookURL

func (x *HookTeardownRequest) GetHookURL() string

func (*HookTeardownRequest) GetRepoName

func (x *HookTeardownRequest) GetRepoName() string

func (*HookTeardownRequest) ProtoMessage

func (*HookTeardownRequest) ProtoMessage()

func (*HookTeardownRequest) ProtoReflect added in v0.3.0

func (x *HookTeardownRequest) ProtoReflect() protoreflect.Message

func (*HookTeardownRequest) Reset

func (x *HookTeardownRequest) Reset()

func (*HookTeardownRequest) String

func (x *HookTeardownRequest) String() string

type RepoRefPair

type RepoRefPair struct {
	RepoName string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	RefName  string `protobuf:"bytes,2,opt,name=refName,proto3" json:"refName,omitempty"`
	// contains filtered or unexported fields
}

func (*RepoRefPair) Descriptor deprecated

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

Deprecated: Use RepoRefPair.ProtoReflect.Descriptor instead.

func (*RepoRefPair) GetRefName

func (x *RepoRefPair) GetRefName() string

func (*RepoRefPair) GetRepoName

func (x *RepoRefPair) GetRepoName() string

func (*RepoRefPair) ProtoMessage

func (*RepoRefPair) ProtoMessage()

func (*RepoRefPair) ProtoReflect added in v0.3.0

func (x *RepoRefPair) ProtoReflect() protoreflect.Message

func (*RepoRefPair) Reset

func (x *RepoRefPair) Reset()

func (*RepoRefPair) String

func (x *RepoRefPair) String() string

type RepoSHAPair

type RepoSHAPair struct {
	RepoName string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	Sha      string `protobuf:"bytes,2,opt,name=sha,proto3" json:"sha,omitempty"`
	// contains filtered or unexported fields
}

func (*RepoSHAPair) Descriptor deprecated

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

Deprecated: Use RepoSHAPair.ProtoReflect.Descriptor instead.

func (*RepoSHAPair) GetRepoName

func (x *RepoSHAPair) GetRepoName() string

func (*RepoSHAPair) GetSha

func (x *RepoSHAPair) GetSha() string

func (*RepoSHAPair) ProtoMessage

func (*RepoSHAPair) ProtoMessage()

func (*RepoSHAPair) ProtoReflect added in v0.3.0

func (x *RepoSHAPair) ProtoReflect() protoreflect.Message

func (*RepoSHAPair) Reset

func (x *RepoSHAPair) Reset()

func (*RepoSHAPair) String

func (x *RepoSHAPair) String() string

type RepositoryClient

type RepositoryClient interface {
	// CommentError is for commenting on PRs when there is no better means of bubbling up an error.
	CommentError(ctx context.Context, in *CommentErrorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	MyRepositories(ctx context.Context, in *types.User, opts ...grpc.CallOption) (*RepositoryList, error)
	GetRepository(ctx context.Context, in *UserWithRepo, opts ...grpc.CallOption) (*RepositoryData, error)
	MyLogin(ctx context.Context, in *String, opts ...grpc.CallOption) (*String, error)
	GetFileList(ctx context.Context, in *RepoSHAPair, opts ...grpc.CallOption) (*StringList, error)
	GetSHA(ctx context.Context, in *RepoRefPair, opts ...grpc.CallOption) (*String, error)
	GetRefs(ctx context.Context, in *RepoSHAPair, opts ...grpc.CallOption) (*StringList, error)
	GetFile(ctx context.Context, in *FileRequest, opts ...grpc.CallOption) (*Bytes, error)
	GetDiffFiles(ctx context.Context, in *FileDiffRequest, opts ...grpc.CallOption) (*StringList, error)
	SetupHook(ctx context.Context, in *HookSetupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	TeardownHook(ctx context.Context, in *HookTeardownRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	PendingStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	StartedStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ErrorStatus(ctx context.Context, in *ErrorStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	FinishedStatus(ctx context.Context, in *FinishedStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ClearStates(ctx context.Context, in *RepoSHAPair, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

RepositoryClient is the client API for Repository service.

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

func NewRepositoryClient

func NewRepositoryClient(cc grpc.ClientConnInterface) RepositoryClient

type RepositoryData

type RepositoryData struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	MasterBranch string `protobuf:"bytes,2,opt,name=masterBranch,proto3" json:"masterBranch,omitempty"`
	// contains filtered or unexported fields
}

func (*RepositoryData) Descriptor deprecated

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

Deprecated: Use RepositoryData.ProtoReflect.Descriptor instead.

func (*RepositoryData) GetMasterBranch

func (x *RepositoryData) GetMasterBranch() string

func (*RepositoryData) GetName

func (x *RepositoryData) GetName() string

func (*RepositoryData) ProtoMessage

func (*RepositoryData) ProtoMessage()

func (*RepositoryData) ProtoReflect added in v0.3.0

func (x *RepositoryData) ProtoReflect() protoreflect.Message

func (*RepositoryData) Reset

func (x *RepositoryData) Reset()

func (*RepositoryData) String

func (x *RepositoryData) String() string

type RepositoryList

type RepositoryList struct {
	Repositories []*RepositoryData `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
	// contains filtered or unexported fields
}

func (*RepositoryList) Descriptor deprecated

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

Deprecated: Use RepositoryList.ProtoReflect.Descriptor instead.

func (*RepositoryList) GetRepositories

func (x *RepositoryList) GetRepositories() []*RepositoryData

func (*RepositoryList) ProtoMessage

func (*RepositoryList) ProtoMessage()

func (*RepositoryList) ProtoReflect added in v0.3.0

func (x *RepositoryList) ProtoReflect() protoreflect.Message

func (*RepositoryList) Reset

func (x *RepositoryList) Reset()

func (*RepositoryList) String

func (x *RepositoryList) String() string

type RepositoryServer

type RepositoryServer interface {
	// CommentError is for commenting on PRs when there is no better means of bubbling up an error.
	CommentError(context.Context, *CommentErrorRequest) (*emptypb.Empty, error)
	MyRepositories(context.Context, *types.User) (*RepositoryList, error)
	GetRepository(context.Context, *UserWithRepo) (*RepositoryData, error)
	MyLogin(context.Context, *String) (*String, error)
	GetFileList(context.Context, *RepoSHAPair) (*StringList, error)
	GetSHA(context.Context, *RepoRefPair) (*String, error)
	GetRefs(context.Context, *RepoSHAPair) (*StringList, error)
	GetFile(context.Context, *FileRequest) (*Bytes, error)
	GetDiffFiles(context.Context, *FileDiffRequest) (*StringList, error)
	SetupHook(context.Context, *HookSetupRequest) (*emptypb.Empty, error)
	TeardownHook(context.Context, *HookTeardownRequest) (*emptypb.Empty, error)
	PendingStatus(context.Context, *StatusRequest) (*emptypb.Empty, error)
	StartedStatus(context.Context, *StatusRequest) (*emptypb.Empty, error)
	ErrorStatus(context.Context, *ErrorStatusRequest) (*emptypb.Empty, error)
	FinishedStatus(context.Context, *FinishedStatusRequest) (*emptypb.Empty, error)
	ClearStates(context.Context, *RepoSHAPair) (*emptypb.Empty, error)
}

RepositoryServer is the server API for Repository service.

type StatusRequest

type StatusRequest struct {
	RepoName string `protobuf:"bytes,1,opt,name=repoName,proto3" json:"repoName,omitempty"`
	RunName  string `protobuf:"bytes,2,opt,name=runName,proto3" json:"runName,omitempty"`
	Sha      string `protobuf:"bytes,3,opt,name=sha,proto3" json:"sha,omitempty"`
	Url      string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusRequest) Descriptor deprecated

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

Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.

func (*StatusRequest) GetRepoName

func (x *StatusRequest) GetRepoName() string

func (*StatusRequest) GetRunName

func (x *StatusRequest) GetRunName() string

func (*StatusRequest) GetSha

func (x *StatusRequest) GetSha() string

func (*StatusRequest) GetUrl

func (x *StatusRequest) GetUrl() string

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) ProtoReflect added in v0.3.0

func (x *StatusRequest) ProtoReflect() protoreflect.Message

func (*StatusRequest) Reset

func (x *StatusRequest) Reset()

func (*StatusRequest) String

func (x *StatusRequest) String() string

type String

type String struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*String) Descriptor deprecated

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

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetName

func (x *String) GetName() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect added in v0.3.0

func (x *String) ProtoReflect() protoreflect.Message

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

type StringList

type StringList struct {
	List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*StringList) Descriptor deprecated

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

Deprecated: Use StringList.ProtoReflect.Descriptor instead.

func (*StringList) GetList

func (x *StringList) GetList() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) ProtoReflect added in v0.3.0

func (x *StringList) ProtoReflect() protoreflect.Message

func (*StringList) Reset

func (x *StringList) Reset()

func (*StringList) String

func (x *StringList) String() string

type UnimplementedRepositoryServer

type UnimplementedRepositoryServer struct {
}

UnimplementedRepositoryServer can be embedded to have forward compatible implementations.

func (*UnimplementedRepositoryServer) ClearStates

func (*UnimplementedRepositoryServer) CommentError

func (*UnimplementedRepositoryServer) ErrorStatus

func (*UnimplementedRepositoryServer) FinishedStatus

func (*UnimplementedRepositoryServer) GetDiffFiles

func (*UnimplementedRepositoryServer) GetFile

func (*UnimplementedRepositoryServer) GetFileList

func (*UnimplementedRepositoryServer) GetRefs

func (*UnimplementedRepositoryServer) GetRepository

func (*UnimplementedRepositoryServer) GetSHA

func (*UnimplementedRepositoryServer) MyLogin

func (*UnimplementedRepositoryServer) MyRepositories

func (*UnimplementedRepositoryServer) PendingStatus

func (*UnimplementedRepositoryServer) SetupHook

func (*UnimplementedRepositoryServer) StartedStatus

func (*UnimplementedRepositoryServer) TeardownHook

type UserWithRepo

type UserWithRepo struct {
	User     *types.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	RepoName string      `protobuf:"bytes,2,opt,name=repoName,proto3" json:"repoName,omitempty"`
	// contains filtered or unexported fields
}

func (*UserWithRepo) Descriptor deprecated

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

Deprecated: Use UserWithRepo.ProtoReflect.Descriptor instead.

func (*UserWithRepo) GetRepoName

func (x *UserWithRepo) GetRepoName() string

func (*UserWithRepo) GetUser

func (x *UserWithRepo) GetUser() *types.User

func (*UserWithRepo) ProtoMessage

func (*UserWithRepo) ProtoMessage()

func (*UserWithRepo) ProtoReflect added in v0.3.0

func (x *UserWithRepo) ProtoReflect() protoreflect.Message

func (*UserWithRepo) Reset

func (x *UserWithRepo) Reset()

func (*UserWithRepo) String

func (x *UserWithRepo) String() string

Jump to

Keyboard shortcuts

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