luci: go.chromium.org/luci/milo/api/service/v1 Index | Files

package milopb

import "go.chromium.org/luci/milo/api/service/v1"

Index

Package Files

generate.go milointernalserver_dec.go pb.discovery.go rpc.pb.go

Variables

var File_go_chromium_org_luci_milo_api_service_v1_rpc_proto protoreflect.FileDescriptor

func FileDescriptorSet Uses

func FileDescriptorSet() *descriptor.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterMiloInternalServer Uses

func RegisterMiloInternalServer(s prpc.Registrar, srv MiloInternalServer)

type DecoratedMiloInternal Uses

type DecoratedMiloInternal struct {
    // Service is the service to decorate.
    Service MiloInternalServer
    // Prelude is called for each method before forwarding the call to Service.
    // If Prelude returns an error, then the call is skipped and the error is
    // processed via the Postlude (if one is defined), or it is returned directly.
    Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
    // Postlude is called for each method after Service has processed the call, or
    // after the Prelude has returned an error. This takes the the Service's
    // response proto (which may be nil) and/or any error. The decorated
    // service will return the response (possibly mutated) and error that Postlude
    // returns.
    Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedMiloInternal) QueryBlamelist Uses

func (s *DecoratedMiloInternal) QueryBlamelist(ctx context.Context, req *QueryBlamelistRequest) (rsp *QueryBlamelistResponse, err error)

type MiloInternalClient Uses

type MiloInternalClient interface {
    // Retrieves blamelist of a build.
    //
    // The blamelist of a build is defined as [end_commit, start_commit)
    // end_commit is the Gitiles commit of the build (specified in gitiles
    // buildset tag).
    // start_commit is the closest ancestor commit with an associated build that
    // is from the same builder and is not expired, cancelled, or infra-failed.
    QueryBlamelist(ctx context.Context, in *QueryBlamelistRequest, opts ...grpc.CallOption) (*QueryBlamelistResponse, error)
}

MiloInternalClient is the client API for MiloInternal service.

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

func NewMiloInternalClient Uses

func NewMiloInternalClient(cc grpc.ClientConnInterface) MiloInternalClient

func NewMiloInternalPRPCClient Uses

func NewMiloInternalPRPCClient(client *prpc.Client) MiloInternalClient

type MiloInternalServer Uses

type MiloInternalServer interface {
    // Retrieves blamelist of a build.
    //
    // The blamelist of a build is defined as [end_commit, start_commit)
    // end_commit is the Gitiles commit of the build (specified in gitiles
    // buildset tag).
    // start_commit is the closest ancestor commit with an associated build that
    // is from the same builder and is not expired, cancelled, or infra-failed.
    QueryBlamelist(context.Context, *QueryBlamelistRequest) (*QueryBlamelistResponse, error)
}

MiloInternalServer is the server API for MiloInternal service.

type QueryBlamelistPageToken Uses

type QueryBlamelistPageToken struct {

    // The first commit in the next page.
    NextCommitId string `protobuf:"bytes,2,opt,name=next_commit_id,json=nextCommitId,proto3" json:"next_commit_id,omitempty"`
    // contains filtered or unexported fields
}

A stateless page token for QueryBlamelist RPC.

func (*QueryBlamelistPageToken) Descriptor Uses

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

Deprecated: Use QueryBlamelistPageToken.ProtoReflect.Descriptor instead.

func (*QueryBlamelistPageToken) GetNextCommitId Uses

func (x *QueryBlamelistPageToken) GetNextCommitId() string

func (*QueryBlamelistPageToken) ProtoMessage Uses

func (*QueryBlamelistPageToken) ProtoMessage()

func (*QueryBlamelistPageToken) ProtoReflect Uses

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

func (*QueryBlamelistPageToken) Reset Uses

func (x *QueryBlamelistPageToken) Reset()

func (*QueryBlamelistPageToken) String Uses

func (x *QueryBlamelistPageToken) String() string

type QueryBlamelistRequest Uses

type QueryBlamelistRequest struct {

    // The Gitiles commit of the build.
    //
    // This defines the end_commit of the blamelist.
    // It should be set to the input Gitiles commit of the build.
    GitilesCommit *proto1.GitilesCommit `protobuf:"bytes,1,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"`
    // The context builder of the blamelist.
    //
    // The start commit of the blamelist is the closest ancestor commit with an
    // associated build that is from the same builder and is not expired,
    // cancelled, or infra-failed.
    Builder *proto1.BuilderID `protobuf:"bytes,2,opt,name=builder,proto3" json:"builder,omitempty"`
    // Optional. The maximum number of commits to return.
    //
    // The service may return fewer than this value.
    // If unspecified, at most 100 commits will be returned.
    // The maximum value is 1000; values above 1000 will be coerced to 1000.
    PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // Optional. A page token, received from a previous `QueryBlamelist` call.
    // Provide this to retrieve the subsequent page.
    //
    // When paginating, all parameters provided to `QueryBlamelist`, with the
    // exception of page_size and page_token, must match the call that provided
    // the page token.
    PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

A request message for `QueryBlamelist` RPC.

func (*QueryBlamelistRequest) Descriptor Uses

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

Deprecated: Use QueryBlamelistRequest.ProtoReflect.Descriptor instead.

func (*QueryBlamelistRequest) GetBuilder Uses

func (x *QueryBlamelistRequest) GetBuilder() *proto1.BuilderID

func (*QueryBlamelistRequest) GetGitilesCommit Uses

func (x *QueryBlamelistRequest) GetGitilesCommit() *proto1.GitilesCommit

func (*QueryBlamelistRequest) GetPageSize Uses

func (x *QueryBlamelistRequest) GetPageSize() int32

func (*QueryBlamelistRequest) GetPageToken Uses

func (x *QueryBlamelistRequest) GetPageToken() string

func (*QueryBlamelistRequest) ProtoMessage Uses

func (*QueryBlamelistRequest) ProtoMessage()

func (*QueryBlamelistRequest) ProtoReflect Uses

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

func (*QueryBlamelistRequest) Reset Uses

func (x *QueryBlamelistRequest) Reset()

func (*QueryBlamelistRequest) String Uses

func (x *QueryBlamelistRequest) String() string

type QueryBlamelistResponse Uses

type QueryBlamelistResponse struct {

    // The commits from the blamelist of the build, in reversed chronologically
    // order.
    Commits []*git.Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
    // A token that can be sent as `page_token` to retrieve the next page.
    // If this field is omitted, there are no subsequent pages.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

A response message for QueryBlamelist RPC.

func (*QueryBlamelistResponse) Descriptor Uses

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

Deprecated: Use QueryBlamelistResponse.ProtoReflect.Descriptor instead.

func (*QueryBlamelistResponse) GetCommits Uses

func (x *QueryBlamelistResponse) GetCommits() []*git.Commit

func (*QueryBlamelistResponse) GetNextPageToken Uses

func (x *QueryBlamelistResponse) GetNextPageToken() string

func (*QueryBlamelistResponse) ProtoMessage Uses

func (*QueryBlamelistResponse) ProtoMessage()

func (*QueryBlamelistResponse) ProtoReflect Uses

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

func (*QueryBlamelistResponse) Reset Uses

func (x *QueryBlamelistResponse) Reset()

func (*QueryBlamelistResponse) String Uses

func (x *QueryBlamelistResponse) String() string

type UnimplementedMiloInternalServer Uses

type UnimplementedMiloInternalServer struct {
}

UnimplementedMiloInternalServer can be embedded to have forward compatible implementations.

func (*UnimplementedMiloInternalServer) QueryBlamelist Uses

func (*UnimplementedMiloInternalServer) QueryBlamelist(context.Context, *QueryBlamelistRequest) (*QueryBlamelistResponse, error)

Package milopb imports 14 packages (graph) and is imported by 3 packages. Updated 2020-10-24. Refresh now. Tools for package owners.