modulev1beta1connect

package
v1.11.1-20231115201000... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// BranchServiceGetBranchesProcedure is the fully-qualified name of the BranchService's GetBranches
	// RPC.
	BranchServiceGetBranchesProcedure = "/buf.registry.module.v1beta1.BranchService/GetBranches"
	// BranchServiceGetReleaseBranchesProcedure is the fully-qualified name of the BranchService's
	// GetReleaseBranches RPC.
	BranchServiceGetReleaseBranchesProcedure = "/buf.registry.module.v1beta1.BranchService/GetReleaseBranches"
	// BranchServiceListBranchesProcedure is the fully-qualified name of the BranchService's
	// ListBranches RPC.
	BranchServiceListBranchesProcedure = "/buf.registry.module.v1beta1.BranchService/ListBranches"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// CommitServiceResolveCommitsProcedure is the fully-qualified name of the CommitService's
	// ResolveCommits RPC.
	CommitServiceResolveCommitsProcedure = "/buf.registry.module.v1beta1.CommitService/ResolveCommits"
	// CommitServiceListCommitHistoryProcedure is the fully-qualified name of the CommitService's
	// ListCommitHistory RPC.
	CommitServiceListCommitHistoryProcedure = "/buf.registry.module.v1beta1.CommitService/ListCommitHistory"
	// CommitServiceCreateCommitsProcedure is the fully-qualified name of the CommitService's
	// CreateCommits RPC.
	CommitServiceCreateCommitsProcedure = "/buf.registry.module.v1beta1.CommitService/CreateCommits"
	// CommitServiceGetCommitNodesProcedure is the fully-qualified name of the CommitService's
	// GetCommitNodes RPC.
	CommitServiceGetCommitNodesProcedure = "/buf.registry.module.v1beta1.CommitService/GetCommitNodes"
	// CommitServiceGetBlobsProcedure is the fully-qualified name of the CommitService's GetBlobs RPC.
	CommitServiceGetBlobsProcedure = "/buf.registry.module.v1beta1.CommitService/GetBlobs"
	// CommitServiceGetMissingBlobDigestsProcedure is the fully-qualified name of the CommitService's
	// GetMissingBlobDigests RPC.
	CommitServiceGetMissingBlobDigestsProcedure = "/buf.registry.module.v1beta1.CommitService/GetMissingBlobDigests"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ModuleServiceGetModulesProcedure is the fully-qualified name of the ModuleService's GetModules
	// RPC.
	ModuleServiceGetModulesProcedure = "/buf.registry.module.v1beta1.ModuleService/GetModules"
	// ModuleServiceListModulesProcedure is the fully-qualified name of the ModuleService's ListModules
	// RPC.
	ModuleServiceListModulesProcedure = "/buf.registry.module.v1beta1.ModuleService/ListModules"
	// ModuleServiceCreateModulesProcedure is the fully-qualified name of the ModuleService's
	// CreateModules RPC.
	ModuleServiceCreateModulesProcedure = "/buf.registry.module.v1beta1.ModuleService/CreateModules"
	// ModuleServiceUpdateModulesProcedure is the fully-qualified name of the ModuleService's
	// UpdateModules RPC.
	ModuleServiceUpdateModulesProcedure = "/buf.registry.module.v1beta1.ModuleService/UpdateModules"
	// ModuleServiceDeleteModulesProcedure is the fully-qualified name of the ModuleService's
	// DeleteModules RPC.
	ModuleServiceDeleteModulesProcedure = "/buf.registry.module.v1beta1.ModuleService/DeleteModules"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// TagServiceGetTagsProcedure is the fully-qualified name of the TagService's GetTags RPC.
	TagServiceGetTagsProcedure = "/buf.registry.module.v1beta1.TagService/GetTags"
	// TagServiceListTagsProcedure is the fully-qualified name of the TagService's ListTags RPC.
	TagServiceListTagsProcedure = "/buf.registry.module.v1beta1.TagService/ListTags"
	// TagServiceCreateTagsProcedure is the fully-qualified name of the TagService's CreateTags RPC.
	TagServiceCreateTagsProcedure = "/buf.registry.module.v1beta1.TagService/CreateTags"
	// TagServiceDeleteTagsProcedure is the fully-qualified name of the TagService's DeleteTags RPC.
	TagServiceDeleteTagsProcedure = "/buf.registry.module.v1beta1.TagService/DeleteTags"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// VCSCommitServiceGetVCSCommitsProcedure is the fully-qualified name of the VCSCommitService's
	// GetVCSCommits RPC.
	VCSCommitServiceGetVCSCommitsProcedure = "/buf.registry.module.v1beta1.VCSCommitService/GetVCSCommits"
	// VCSCommitServiceListVCSCommitsProcedure is the fully-qualified name of the VCSCommitService's
	// ListVCSCommits RPC.
	VCSCommitServiceListVCSCommitsProcedure = "/buf.registry.module.v1beta1.VCSCommitService/ListVCSCommits"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// BranchServiceName is the fully-qualified name of the BranchService service.
	BranchServiceName = "buf.registry.module.v1beta1.BranchService"
)
View Source
const (
	// CommitServiceName is the fully-qualified name of the CommitService service.
	CommitServiceName = "buf.registry.module.v1beta1.CommitService"
)
View Source
const (
	// ModuleServiceName is the fully-qualified name of the ModuleService service.
	ModuleServiceName = "buf.registry.module.v1beta1.ModuleService"
)
View Source
const (
	// TagServiceName is the fully-qualified name of the TagService service.
	TagServiceName = "buf.registry.module.v1beta1.TagService"
)
View Source
const (
	// VCSCommitServiceName is the fully-qualified name of the VCSCommitService service.
	VCSCommitServiceName = "buf.registry.module.v1beta1.VCSCommitService"
)

Variables

This section is empty.

Functions

func NewBranchServiceHandler

func NewBranchServiceHandler(svc BranchServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewBranchServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewCommitServiceHandler

func NewCommitServiceHandler(svc CommitServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewCommitServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewModuleServiceHandler

func NewModuleServiceHandler(svc ModuleServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewModuleServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewTagServiceHandler

func NewTagServiceHandler(svc TagServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewTagServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewVCSCommitServiceHandler

func NewVCSCommitServiceHandler(svc VCSCommitServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewVCSCommitServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type BranchServiceClient

type BranchServiceClient interface {
	// Get Branches by ID or name.
	GetBranches(context.Context, *connect.Request[v1beta1.GetBranchesRequest]) (*connect.Response[v1beta1.GetBranchesResponse], error)
	// Get release Branches for specific Modules.
	GetReleaseBranches(context.Context, *connect.Request[v1beta1.GetReleaseBranchesRequest]) (*connect.Response[v1beta1.GetReleaseBranchesResponse], error)
	// List Branches for a given Module, Commit, Tag, or VCSCommit.
	ListBranches(context.Context, *connect.Request[v1beta1.ListBranchesRequest]) (*connect.Response[v1beta1.ListBranchesResponse], error)
}

BranchServiceClient is a client for the buf.registry.module.v1beta1.BranchService service.

func NewBranchServiceClient

func NewBranchServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) BranchServiceClient

NewBranchServiceClient constructs a client for the buf.registry.module.v1beta1.BranchService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type BranchServiceHandler

type BranchServiceHandler interface {
	// Get Branches by ID or name.
	GetBranches(context.Context, *connect.Request[v1beta1.GetBranchesRequest]) (*connect.Response[v1beta1.GetBranchesResponse], error)
	// Get release Branches for specific Modules.
	GetReleaseBranches(context.Context, *connect.Request[v1beta1.GetReleaseBranchesRequest]) (*connect.Response[v1beta1.GetReleaseBranchesResponse], error)
	// List Branches for a given Module, Commit, Tag, or VCSCommit.
	ListBranches(context.Context, *connect.Request[v1beta1.ListBranchesRequest]) (*connect.Response[v1beta1.ListBranchesResponse], error)
}

BranchServiceHandler is an implementation of the buf.registry.module.v1beta1.BranchService service.

type CommitServiceClient

type CommitServiceClient interface {
	// Resolve commits by Commit ID, Module, Branch, Tag, or VCSCommit.
	ResolveCommits(context.Context, *connect.Request[v1beta1.ResolveCommitsRequest]) (*connect.Response[v1beta1.ResolveCommitsResponse], error)
	// List linear Commit history starting at a given Commit, Module, Branch, Tag, or VCSCommit.
	ListCommitHistory(context.Context, *connect.Request[v1beta1.ListCommitHistoryRequest]) (*connect.Response[v1beta1.ListCommitHistoryResponse], error)
	// Create commits on a Module with associated Content.
	//
	// This is used by push and sync.
	//
	// This operation is atomic. Either all Commits and associated content are created or an error is returned.
	//
	// TODO: PushCommits? Something else? This is creating potentially a bunch of resources.
	CreateCommits(context.Context, *connect.Request[v1beta1.CreateCommitsRequest]) (*connect.Response[v1beta1.CreateCommitsResponse], error)
	// Get the pointers to the content for a given set of Commits, Modules, Branches, Tags, or VCSCommits.
	//
	// Nodes consist of:
	//   - The FileNodes: .proto files, license files, and documentation files.
	//   - The dependencies.
	//
	// Retrieving file content is a multi-step process:
	//   - Get the FileNode messages via this RPC. FileNodes are a map from path to digest.
	//   - Get the Blob messages via GetBlobs. Blobs are a map from digest to content.
	//   - If file content for the dependencies is desired, Get the Commits for the DepNodes,
	//     and call GetCommitCodes for those dependencies.
	GetCommitNodes(context.Context, *connect.Request[v1beta1.GetCommitNodesRequest]) (*connect.Response[v1beta1.GetCommitNodesResponse], error)
	// Get the Blobs for files within Commits for a given set of Digests.
	GetBlobs(context.Context, *connect.Request[v1beta1.GetBlobsRequest]) (*connect.Response[v1beta1.GetBlobsResponse], error)
	// Get the digests for Blobs that are not currently stored on the server.
	GetMissingBlobDigests(context.Context, *connect.Request[v1beta1.GetMissingBlobDigestsRequest]) (*connect.Response[v1beta1.GetMissingBlobDigestsResponse], error)
}

CommitServiceClient is a client for the buf.registry.module.v1beta1.CommitService service.

func NewCommitServiceClient

func NewCommitServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) CommitServiceClient

NewCommitServiceClient constructs a client for the buf.registry.module.v1beta1.CommitService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type CommitServiceHandler

type CommitServiceHandler interface {
	// Resolve commits by Commit ID, Module, Branch, Tag, or VCSCommit.
	ResolveCommits(context.Context, *connect.Request[v1beta1.ResolveCommitsRequest]) (*connect.Response[v1beta1.ResolveCommitsResponse], error)
	// List linear Commit history starting at a given Commit, Module, Branch, Tag, or VCSCommit.
	ListCommitHistory(context.Context, *connect.Request[v1beta1.ListCommitHistoryRequest]) (*connect.Response[v1beta1.ListCommitHistoryResponse], error)
	// Create commits on a Module with associated Content.
	//
	// This is used by push and sync.
	//
	// This operation is atomic. Either all Commits and associated content are created or an error is returned.
	//
	// TODO: PushCommits? Something else? This is creating potentially a bunch of resources.
	CreateCommits(context.Context, *connect.Request[v1beta1.CreateCommitsRequest]) (*connect.Response[v1beta1.CreateCommitsResponse], error)
	// Get the pointers to the content for a given set of Commits, Modules, Branches, Tags, or VCSCommits.
	//
	// Nodes consist of:
	//   - The FileNodes: .proto files, license files, and documentation files.
	//   - The dependencies.
	//
	// Retrieving file content is a multi-step process:
	//   - Get the FileNode messages via this RPC. FileNodes are a map from path to digest.
	//   - Get the Blob messages via GetBlobs. Blobs are a map from digest to content.
	//   - If file content for the dependencies is desired, Get the Commits for the DepNodes,
	//     and call GetCommitCodes for those dependencies.
	GetCommitNodes(context.Context, *connect.Request[v1beta1.GetCommitNodesRequest]) (*connect.Response[v1beta1.GetCommitNodesResponse], error)
	// Get the Blobs for files within Commits for a given set of Digests.
	GetBlobs(context.Context, *connect.Request[v1beta1.GetBlobsRequest]) (*connect.Response[v1beta1.GetBlobsResponse], error)
	// Get the digests for Blobs that are not currently stored on the server.
	GetMissingBlobDigests(context.Context, *connect.Request[v1beta1.GetMissingBlobDigestsRequest]) (*connect.Response[v1beta1.GetMissingBlobDigestsResponse], error)
}

CommitServiceHandler is an implementation of the buf.registry.module.v1beta1.CommitService service.

type ModuleServiceClient

type ModuleServiceClient interface {
	// Get Modules by id or name.
	GetModules(context.Context, *connect.Request[v1beta1.GetModulesRequest]) (*connect.Response[v1beta1.GetModulesResponse], error)
	// List Modules, usually for a specific User or Organization.
	ListModules(context.Context, *connect.Request[v1beta1.ListModulesRequest]) (*connect.Response[v1beta1.ListModulesResponse], error)
	// Create new Modules.
	//
	// When a Module is created, a Branch representing the release Branch
	// is created as well.
	//
	// This operation is atomic. Either all Modules are created or an error is returned.
	CreateModules(context.Context, *connect.Request[v1beta1.CreateModulesRequest]) (*connect.Response[v1beta1.CreateModulesResponse], error)
	// Update existing Modules.
	//
	// This operation is atomic. Either all Modules are updated or an error is returned.
	UpdateModules(context.Context, *connect.Request[v1beta1.UpdateModulesRequest]) (*connect.Response[v1beta1.UpdateModulesResponse], error)
	// Delete existing Modules.
	//
	// This operation is atomic. Either all Modules are deleted or an error is returned.
	DeleteModules(context.Context, *connect.Request[v1beta1.DeleteModulesRequest]) (*connect.Response[v1beta1.DeleteModulesResponse], error)
}

ModuleServiceClient is a client for the buf.registry.module.v1beta1.ModuleService service.

func NewModuleServiceClient

func NewModuleServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ModuleServiceClient

NewModuleServiceClient constructs a client for the buf.registry.module.v1beta1.ModuleService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ModuleServiceHandler

type ModuleServiceHandler interface {
	// Get Modules by id or name.
	GetModules(context.Context, *connect.Request[v1beta1.GetModulesRequest]) (*connect.Response[v1beta1.GetModulesResponse], error)
	// List Modules, usually for a specific User or Organization.
	ListModules(context.Context, *connect.Request[v1beta1.ListModulesRequest]) (*connect.Response[v1beta1.ListModulesResponse], error)
	// Create new Modules.
	//
	// When a Module is created, a Branch representing the release Branch
	// is created as well.
	//
	// This operation is atomic. Either all Modules are created or an error is returned.
	CreateModules(context.Context, *connect.Request[v1beta1.CreateModulesRequest]) (*connect.Response[v1beta1.CreateModulesResponse], error)
	// Update existing Modules.
	//
	// This operation is atomic. Either all Modules are updated or an error is returned.
	UpdateModules(context.Context, *connect.Request[v1beta1.UpdateModulesRequest]) (*connect.Response[v1beta1.UpdateModulesResponse], error)
	// Delete existing Modules.
	//
	// This operation is atomic. Either all Modules are deleted or an error is returned.
	DeleteModules(context.Context, *connect.Request[v1beta1.DeleteModulesRequest]) (*connect.Response[v1beta1.DeleteModulesResponse], error)
}

ModuleServiceHandler is an implementation of the buf.registry.module.v1beta1.ModuleService service.

type TagServiceClient

type TagServiceClient interface {
	// Get Tags by id or name.
	GetTags(context.Context, *connect.Request[v1beta1.GetTagsRequest]) (*connect.Response[v1beta1.GetTagsResponse], error)
	// List Tags for a given Module, Commit, Branch, or VCSCommit.
	ListTags(context.Context, *connect.Request[v1beta1.ListTagsRequest]) (*connect.Response[v1beta1.ListTagsResponse], error)
	// Create new Tags on a Module.
	//
	// This operation is atomic. Either all Tags are created or an error is returned.
	CreateTags(context.Context, *connect.Request[v1beta1.CreateTagsRequest]) (*connect.Response[v1beta1.CreateTagsResponse], error)
	// Delete existing Tags.
	//
	// This operation is atomic. Either all Tags are deleted or an error is returned.
	DeleteTags(context.Context, *connect.Request[v1beta1.DeleteTagsRequest]) (*connect.Response[v1beta1.DeleteTagsResponse], error)
}

TagServiceClient is a client for the buf.registry.module.v1beta1.TagService service.

func NewTagServiceClient

func NewTagServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) TagServiceClient

NewTagServiceClient constructs a client for the buf.registry.module.v1beta1.TagService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type TagServiceHandler

type TagServiceHandler interface {
	// Get Tags by id or name.
	GetTags(context.Context, *connect.Request[v1beta1.GetTagsRequest]) (*connect.Response[v1beta1.GetTagsResponse], error)
	// List Tags for a given Module, Commit, Branch, or VCSCommit.
	ListTags(context.Context, *connect.Request[v1beta1.ListTagsRequest]) (*connect.Response[v1beta1.ListTagsResponse], error)
	// Create new Tags on a Module.
	//
	// This operation is atomic. Either all Tags are created or an error is returned.
	CreateTags(context.Context, *connect.Request[v1beta1.CreateTagsRequest]) (*connect.Response[v1beta1.CreateTagsResponse], error)
	// Delete existing Tags.
	//
	// This operation is atomic. Either all Tags are deleted or an error is returned.
	DeleteTags(context.Context, *connect.Request[v1beta1.DeleteTagsRequest]) (*connect.Response[v1beta1.DeleteTagsResponse], error)
}

TagServiceHandler is an implementation of the buf.registry.module.v1beta1.TagService service.

type UnimplementedBranchServiceHandler

type UnimplementedBranchServiceHandler struct{}

UnimplementedBranchServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedBranchServiceHandler) GetBranches

func (UnimplementedBranchServiceHandler) GetReleaseBranches

func (UnimplementedBranchServiceHandler) ListBranches

type UnimplementedCommitServiceHandler

type UnimplementedCommitServiceHandler struct{}

UnimplementedCommitServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedCommitServiceHandler) CreateCommits

func (UnimplementedCommitServiceHandler) GetBlobs

func (UnimplementedCommitServiceHandler) GetCommitNodes

func (UnimplementedCommitServiceHandler) GetMissingBlobDigests

func (UnimplementedCommitServiceHandler) ListCommitHistory

func (UnimplementedCommitServiceHandler) ResolveCommits

type UnimplementedModuleServiceHandler

type UnimplementedModuleServiceHandler struct{}

UnimplementedModuleServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedModuleServiceHandler) CreateModules

func (UnimplementedModuleServiceHandler) DeleteModules

func (UnimplementedModuleServiceHandler) GetModules

func (UnimplementedModuleServiceHandler) ListModules

func (UnimplementedModuleServiceHandler) UpdateModules

type UnimplementedTagServiceHandler

type UnimplementedTagServiceHandler struct{}

UnimplementedTagServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedTagServiceHandler) CreateTags

func (UnimplementedTagServiceHandler) DeleteTags

func (UnimplementedTagServiceHandler) GetTags

func (UnimplementedTagServiceHandler) ListTags

type UnimplementedVCSCommitServiceHandler

type UnimplementedVCSCommitServiceHandler struct{}

UnimplementedVCSCommitServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedVCSCommitServiceHandler) GetVCSCommits

func (UnimplementedVCSCommitServiceHandler) ListVCSCommits

type VCSCommitServiceClient

type VCSCommitServiceClient interface {
	// Get VCSCommits by id or name.
	GetVCSCommits(context.Context, *connect.Request[v1beta1.GetVCSCommitsRequest]) (*connect.Response[v1beta1.GetVCSCommitsResponse], error)
	// List VCSCommits for a given Commit, Module, Tag, or Branch.
	ListVCSCommits(context.Context, *connect.Request[v1beta1.ListVCSCommitsRequest]) (*connect.Response[v1beta1.ListVCSCommitsResponse], error)
}

VCSCommitServiceClient is a client for the buf.registry.module.v1beta1.VCSCommitService service.

func NewVCSCommitServiceClient

func NewVCSCommitServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) VCSCommitServiceClient

NewVCSCommitServiceClient constructs a client for the buf.registry.module.v1beta1.VCSCommitService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type VCSCommitServiceHandler

type VCSCommitServiceHandler interface {
	// Get VCSCommits by id or name.
	GetVCSCommits(context.Context, *connect.Request[v1beta1.GetVCSCommitsRequest]) (*connect.Response[v1beta1.GetVCSCommitsResponse], error)
	// List VCSCommits for a given Commit, Module, Tag, or Branch.
	ListVCSCommits(context.Context, *connect.Request[v1beta1.ListVCSCommitsRequest]) (*connect.Response[v1beta1.ListVCSCommitsResponse], error)
}

VCSCommitServiceHandler is an implementation of the buf.registry.module.v1beta1.VCSCommitService service.

Jump to

Keyboard shortcuts

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