Documentation
¶
Index ¶
- Constants
- func NewConnectionServiceHandler(svc ConnectionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewEndpointServiceHandler(svc EndpointServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewPublishingServiceHandler(svc PublishingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewRepositoryServiceHandler(svc RepositoryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewServerServiceHandler(svc ServerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewWorkspaceServiceHandler(svc WorkspaceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type ConnectionServiceClient
- type ConnectionServiceHandler
- type EndpointServiceClient
- type EndpointServiceHandler
- type PublishingServiceClient
- type PublishingServiceHandler
- type RepositoryServiceClient
- type RepositoryServiceHandler
- type ServerServiceClient
- type ServerServiceHandler
- type UnimplementedConnectionServiceHandler
- func (UnimplementedConnectionServiceHandler) AddGitHubApp(context.Context, *connect.Request[v1.AddGitHubAppRequest]) (*connect.Response[v1.AddGitHubAppResponse], error)
- func (UnimplementedConnectionServiceHandler) AddToken(context.Context, *connect.Request[v1.AddTokenRequest]) (*connect.Response[v1.AddTokenResponse], error)
- func (UnimplementedConnectionServiceHandler) BeginGitHubApp(context.Context, *connect.Request[v1.BeginGitHubAppRequest]) (*connect.Response[v1.BeginGitHubAppResponse], error)
- func (UnimplementedConnectionServiceHandler) CompleteGitHubApp(context.Context, *connect.Request[v1.CompleteGitHubAppRequest]) (*connect.Response[v1.CompleteGitHubAppResponse], error)
- func (UnimplementedConnectionServiceHandler) FinishGitHubLogin(context.Context, *connect.Request[v1.FinishGitHubLoginRequest]) (*connect.Response[v1.FinishGitHubLoginResponse], error)
- func (UnimplementedConnectionServiceHandler) ListConnections(context.Context, *connect.Request[v1.ListConnectionsRequest]) (*connect.Response[v1.ListConnectionsResponse], error)
- func (UnimplementedConnectionServiceHandler) RemoveConnection(context.Context, *connect.Request[v1.RemoveConnectionRequest]) (*connect.Response[v1.RemoveConnectionResponse], error)
- func (UnimplementedConnectionServiceHandler) StartGitHubLogin(context.Context, *connect.Request[v1.StartGitHubLoginRequest]) (*connect.Response[v1.StartGitHubLoginResponse], error)
- type UnimplementedEndpointServiceHandler
- func (UnimplementedEndpointServiceHandler) IssueToken(context.Context, *connect.Request[v1.IssueTokenRequest]) (*connect.Response[v1.IssueTokenResponse], error)
- func (UnimplementedEndpointServiceHandler) ListTokens(context.Context, *connect.Request[v1.ListTokensRequest]) (*connect.Response[v1.ListTokensResponse], error)
- func (UnimplementedEndpointServiceHandler) RevokeToken(context.Context, *connect.Request[v1.RevokeTokenRequest]) (*connect.Response[v1.RevokeTokenResponse], error)
- type UnimplementedPublishingServiceHandler
- func (UnimplementedPublishingServiceHandler) GetSettings(context.Context, *connect.Request[v1.GetSettingsRequest]) (*connect.Response[v1.GetSettingsResponse], error)
- func (UnimplementedPublishingServiceHandler) ListPresets(context.Context, *connect.Request[v1.ListPresetsRequest]) (*connect.Response[v1.ListPresetsResponse], error)
- func (UnimplementedPublishingServiceHandler) RemovePreset(context.Context, *connect.Request[v1.RemovePresetRequest]) (*connect.Response[v1.RemovePresetResponse], error)
- func (UnimplementedPublishingServiceHandler) RemoveSettings(context.Context, *connect.Request[v1.RemoveSettingsRequest]) (*connect.Response[v1.RemoveSettingsResponse], error)
- func (UnimplementedPublishingServiceHandler) SetPreset(context.Context, *connect.Request[v1.SetPresetRequest]) (*connect.Response[v1.SetPresetResponse], error)
- func (UnimplementedPublishingServiceHandler) SetSettings(context.Context, *connect.Request[v1.SetSettingsRequest]) (*connect.Response[v1.SetSettingsResponse], error)
- type UnimplementedRepositoryServiceHandler
- type UnimplementedServerServiceHandler
- func (UnimplementedServerServiceHandler) Audit(context.Context, *connect.Request[v1.AuditRequest]) (*connect.Response[v1.AuditResponse], error)
- func (UnimplementedServerServiceHandler) Info(context.Context, *connect.Request[v1.InfoRequest]) (*connect.Response[v1.InfoResponse], error)
- func (UnimplementedServerServiceHandler) Retire(context.Context, *connect.Request[v1.RetireRequest]) (*connect.Response[v1.RetireResponse], error)
- type UnimplementedWorkspaceServiceHandler
- func (UnimplementedWorkspaceServiceHandler) Adopt(context.Context, *connect.Request[v1.AdoptRequest], ...) error
- func (UnimplementedWorkspaceServiceHandler) Changes(context.Context, *connect.Request[v1.ChangesRequest]) (*connect.Response[v1.ChangesResponse], error)
- func (UnimplementedWorkspaceServiceHandler) Checkout(context.Context, *connect.Request[v1.CheckoutRequest], ...) error
- func (UnimplementedWorkspaceServiceHandler) Compare(context.Context, *connect.Request[v1.CompareRequest]) (*connect.Response[v1.CompareResponse], error)
- func (UnimplementedWorkspaceServiceHandler) Conflicts(context.Context, *connect.Request[v1.ConflictsRequest]) (*connect.Response[v1.ConflictsResponse], error)
- func (UnimplementedWorkspaceServiceHandler) Describe(context.Context, *connect.Request[v1.DescribeRequest]) (*connect.Response[v1.DescribeResponse], error)
- func (UnimplementedWorkspaceServiceHandler) Diff(context.Context, *connect.Request[v1.DiffRequest]) (*connect.Response[v1.DiffResponse], error)
- func (UnimplementedWorkspaceServiceHandler) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
- func (UnimplementedWorkspaceServiceHandler) ListWarm(context.Context, *connect.Request[v1.ListWarmRequest]) (*connect.Response[v1.ListWarmResponse], error)
- func (UnimplementedWorkspaceServiceHandler) Prepare(context.Context, *connect.Request[v1.PrepareRequest], ...) error
- func (UnimplementedWorkspaceServiceHandler) Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
- func (UnimplementedWorkspaceServiceHandler) Remove(context.Context, *connect.Request[v1.RemoveRequest]) (*connect.Response[v1.RemoveResponse], error)
- func (UnimplementedWorkspaceServiceHandler) Seal(context.Context, *connect.Request[v1.SealRequest]) (*connect.Response[v1.SealResponse], error)
- func (UnimplementedWorkspaceServiceHandler) SyncSubmodules(context.Context, *connect.Request[v1.SyncSubmodulesRequest], ...) error
- func (UnimplementedWorkspaceServiceHandler) Update(context.Context, *connect.Request[v1.UpdateRequest], ...) error
- func (UnimplementedWorkspaceServiceHandler) Watch(context.Context, *connect.Request[v1.WatchRequest], ...) error
- type WorkspaceServiceClient
- type WorkspaceServiceHandler
Constants ¶
const ( // WorkspaceServiceName is the fully-qualified name of the WorkspaceService service. WorkspaceServiceName = "gitd.v1.WorkspaceService" // RepositoryServiceName is the fully-qualified name of the RepositoryService service. RepositoryServiceName = "gitd.v1.RepositoryService" // ServerServiceName is the fully-qualified name of the ServerService service. ServerServiceName = "gitd.v1.ServerService" // ConnectionServiceName is the fully-qualified name of the ConnectionService service. ConnectionServiceName = "gitd.v1.ConnectionService" // PublishingServiceName is the fully-qualified name of the PublishingService service. PublishingServiceName = "gitd.v1.PublishingService" // EndpointServiceName is the fully-qualified name of the EndpointService service. EndpointServiceName = "gitd.v1.EndpointService" )
const ( // WorkspaceServicePrepareProcedure is the fully-qualified name of the WorkspaceService's Prepare // RPC. WorkspaceServicePrepareProcedure = "/gitd.v1.WorkspaceService/Prepare" // WorkspaceServiceUpdateProcedure is the fully-qualified name of the WorkspaceService's Update RPC. WorkspaceServiceUpdateProcedure = "/gitd.v1.WorkspaceService/Update" // WorkspaceServiceCheckoutProcedure is the fully-qualified name of the WorkspaceService's Checkout // RPC. WorkspaceServiceCheckoutProcedure = "/gitd.v1.WorkspaceService/Checkout" // WorkspaceServiceSyncSubmodulesProcedure is the fully-qualified name of the WorkspaceService's // SyncSubmodules RPC. WorkspaceServiceSyncSubmodulesProcedure = "/gitd.v1.WorkspaceService/SyncSubmodules" // WorkspaceServiceDescribeProcedure is the fully-qualified name of the WorkspaceService's Describe // RPC. WorkspaceServiceDescribeProcedure = "/gitd.v1.WorkspaceService/Describe" // WorkspaceServiceRemoveProcedure is the fully-qualified name of the WorkspaceService's Remove RPC. WorkspaceServiceRemoveProcedure = "/gitd.v1.WorkspaceService/Remove" // WorkspaceServiceListProcedure is the fully-qualified name of the WorkspaceService's List RPC. WorkspaceServiceListProcedure = "/gitd.v1.WorkspaceService/List" // WorkspaceServiceAdoptProcedure is the fully-qualified name of the WorkspaceService's Adopt RPC. WorkspaceServiceAdoptProcedure = "/gitd.v1.WorkspaceService/Adopt" // WorkspaceServicePublishProcedure is the fully-qualified name of the WorkspaceService's Publish // RPC. WorkspaceServicePublishProcedure = "/gitd.v1.WorkspaceService/Publish" // WorkspaceServiceChangesProcedure is the fully-qualified name of the WorkspaceService's Changes // RPC. WorkspaceServiceChangesProcedure = "/gitd.v1.WorkspaceService/Changes" // WorkspaceServiceDiffProcedure is the fully-qualified name of the WorkspaceService's Diff RPC. WorkspaceServiceDiffProcedure = "/gitd.v1.WorkspaceService/Diff" // WorkspaceServiceCompareProcedure is the fully-qualified name of the WorkspaceService's Compare // RPC. WorkspaceServiceCompareProcedure = "/gitd.v1.WorkspaceService/Compare" // WorkspaceServiceConflictsProcedure is the fully-qualified name of the WorkspaceService's // Conflicts RPC. WorkspaceServiceConflictsProcedure = "/gitd.v1.WorkspaceService/Conflicts" // WorkspaceServiceWatchProcedure is the fully-qualified name of the WorkspaceService's Watch RPC. WorkspaceServiceWatchProcedure = "/gitd.v1.WorkspaceService/Watch" // WorkspaceServiceSealProcedure is the fully-qualified name of the WorkspaceService's Seal RPC. WorkspaceServiceSealProcedure = "/gitd.v1.WorkspaceService/Seal" // WorkspaceServiceListWarmProcedure is the fully-qualified name of the WorkspaceService's ListWarm // RPC. WorkspaceServiceListWarmProcedure = "/gitd.v1.WorkspaceService/ListWarm" // RepositoryServiceProbeProcedure is the fully-qualified name of the RepositoryService's Probe RPC. RepositoryServiceProbeProcedure = "/gitd.v1.RepositoryService/Probe" // ServerServiceInfoProcedure is the fully-qualified name of the ServerService's Info RPC. ServerServiceInfoProcedure = "/gitd.v1.ServerService/Info" // ServerServiceRetireProcedure is the fully-qualified name of the ServerService's Retire RPC. ServerServiceRetireProcedure = "/gitd.v1.ServerService/Retire" // ServerServiceAuditProcedure is the fully-qualified name of the ServerService's Audit RPC. ServerServiceAuditProcedure = "/gitd.v1.ServerService/Audit" // ConnectionServiceBeginGitHubAppProcedure is the fully-qualified name of the ConnectionService's // BeginGitHubApp RPC. ConnectionServiceBeginGitHubAppProcedure = "/gitd.v1.ConnectionService/BeginGitHubApp" // ConnectionServiceCompleteGitHubAppProcedure is the fully-qualified name of the // ConnectionService's CompleteGitHubApp RPC. ConnectionServiceCompleteGitHubAppProcedure = "/gitd.v1.ConnectionService/CompleteGitHubApp" // ConnectionServiceStartGitHubLoginProcedure is the fully-qualified name of the ConnectionService's // StartGitHubLogin RPC. ConnectionServiceStartGitHubLoginProcedure = "/gitd.v1.ConnectionService/StartGitHubLogin" // ConnectionServiceFinishGitHubLoginProcedure is the fully-qualified name of the // ConnectionService's FinishGitHubLogin RPC. ConnectionServiceFinishGitHubLoginProcedure = "/gitd.v1.ConnectionService/FinishGitHubLogin" // ConnectionServiceAddGitHubAppProcedure is the fully-qualified name of the ConnectionService's // AddGitHubApp RPC. ConnectionServiceAddGitHubAppProcedure = "/gitd.v1.ConnectionService/AddGitHubApp" // ConnectionServiceAddTokenProcedure is the fully-qualified name of the ConnectionService's // AddToken RPC. ConnectionServiceAddTokenProcedure = "/gitd.v1.ConnectionService/AddToken" // ConnectionServiceListConnectionsProcedure is the fully-qualified name of the ConnectionService's // ListConnections RPC. ConnectionServiceListConnectionsProcedure = "/gitd.v1.ConnectionService/ListConnections" // ConnectionServiceRemoveConnectionProcedure is the fully-qualified name of the ConnectionService's // RemoveConnection RPC. ConnectionServiceRemoveConnectionProcedure = "/gitd.v1.ConnectionService/RemoveConnection" // PublishingServiceGetSettingsProcedure is the fully-qualified name of the PublishingService's // GetSettings RPC. PublishingServiceGetSettingsProcedure = "/gitd.v1.PublishingService/GetSettings" // PublishingServiceSetSettingsProcedure is the fully-qualified name of the PublishingService's // SetSettings RPC. PublishingServiceSetSettingsProcedure = "/gitd.v1.PublishingService/SetSettings" // PublishingServiceRemoveSettingsProcedure is the fully-qualified name of the PublishingService's // RemoveSettings RPC. PublishingServiceRemoveSettingsProcedure = "/gitd.v1.PublishingService/RemoveSettings" // PublishingServiceListPresetsProcedure is the fully-qualified name of the PublishingService's // ListPresets RPC. PublishingServiceListPresetsProcedure = "/gitd.v1.PublishingService/ListPresets" // PublishingServiceSetPresetProcedure is the fully-qualified name of the PublishingService's // SetPreset RPC. PublishingServiceSetPresetProcedure = "/gitd.v1.PublishingService/SetPreset" // PublishingServiceRemovePresetProcedure is the fully-qualified name of the PublishingService's // RemovePreset RPC. PublishingServiceRemovePresetProcedure = "/gitd.v1.PublishingService/RemovePreset" // EndpointServiceIssueTokenProcedure is the fully-qualified name of the EndpointService's // IssueToken RPC. EndpointServiceIssueTokenProcedure = "/gitd.v1.EndpointService/IssueToken" // EndpointServiceRevokeTokenProcedure is the fully-qualified name of the EndpointService's // RevokeToken RPC. EndpointServiceRevokeTokenProcedure = "/gitd.v1.EndpointService/RevokeToken" // EndpointServiceListTokensProcedure is the fully-qualified name of the EndpointService's // ListTokens RPC. EndpointServiceListTokensProcedure = "/gitd.v1.EndpointService/ListTokens" )
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.
Variables ¶
This section is empty.
Functions ¶
func NewConnectionServiceHandler ¶
func NewConnectionServiceHandler(svc ConnectionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewConnectionServiceHandler 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 NewEndpointServiceHandler ¶
func NewEndpointServiceHandler(svc EndpointServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewEndpointServiceHandler 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 NewPublishingServiceHandler ¶
func NewPublishingServiceHandler(svc PublishingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewPublishingServiceHandler 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 NewRepositoryServiceHandler ¶
func NewRepositoryServiceHandler(svc RepositoryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewRepositoryServiceHandler 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 NewServerServiceHandler ¶
func NewServerServiceHandler(svc ServerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewServerServiceHandler 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 NewWorkspaceServiceHandler ¶
func NewWorkspaceServiceHandler(svc WorkspaceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewWorkspaceServiceHandler 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 ConnectionServiceClient ¶
type ConnectionServiceClient interface {
// Start creating the organisation's own GitHub App from a manifest: the answer says
// where the person's browser posts the manifest. GitHub then sends the person to
// `redirect_url` with a code and the state, for CompleteGitHubApp.
BeginGitHubApp(context.Context, *connect.Request[v1.BeginGitHubAppRequest]) (*connect.Response[v1.BeginGitHubAppResponse], error)
// Finish creating the App: gitd exchanges the code for the App's ID and private key and
// keeps them. The person then installs the App on the repositories it may reach.
CompleteGitHubApp(context.Context, *connect.Request[v1.CompleteGitHubAppRequest]) (*connect.Response[v1.CompleteGitHubAppResponse], error)
// Start signing in to GitHub with gitd's public App (GitHub's device flow): the answer
// has the code the person enters at GitHub.
StartGitHubLogin(context.Context, *connect.Request[v1.StartGitHubLoginRequest]) (*connect.Response[v1.StartGitHubLoginResponse], error)
// Wait until the person has entered the code, and keep the sign-in. Pull requests then
// appear as that person.
FinishGitHubLogin(context.Context, *connect.Request[v1.FinishGitHubLoginRequest]) (*connect.Response[v1.FinishGitHubLoginResponse], error)
// Keep a GitHub App the platform already has, by its ID and private key.
AddGitHubApp(context.Context, *connect.Request[v1.AddGitHubAppRequest]) (*connect.Response[v1.AddGitHubAppResponse], error)
// Keep a token for the repositories under a prefix, on any host.
AddToken(context.Context, *connect.Request[v1.AddTokenRequest]) (*connect.Response[v1.AddTokenResponse], error)
// The connections gitd keeps, those of the configuration file included, never a secret.
ListConnections(context.Context, *connect.Request[v1.ListConnectionsRequest]) (*connect.Response[v1.ListConnectionsResponse], error)
// Forget a connection made through the API. One from the configuration file is refused.
RemoveConnection(context.Context, *connect.Request[v1.RemoveConnectionRequest]) (*connect.Response[v1.RemoveConnectionResponse], error)
}
ConnectionServiceClient is a client for the gitd.v1.ConnectionService service.
func NewConnectionServiceClient ¶
func NewConnectionServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ConnectionServiceClient
NewConnectionServiceClient constructs a client for the gitd.v1.ConnectionService 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 ConnectionServiceHandler ¶
type ConnectionServiceHandler interface {
// Start creating the organisation's own GitHub App from a manifest: the answer says
// where the person's browser posts the manifest. GitHub then sends the person to
// `redirect_url` with a code and the state, for CompleteGitHubApp.
BeginGitHubApp(context.Context, *connect.Request[v1.BeginGitHubAppRequest]) (*connect.Response[v1.BeginGitHubAppResponse], error)
// Finish creating the App: gitd exchanges the code for the App's ID and private key and
// keeps them. The person then installs the App on the repositories it may reach.
CompleteGitHubApp(context.Context, *connect.Request[v1.CompleteGitHubAppRequest]) (*connect.Response[v1.CompleteGitHubAppResponse], error)
// Start signing in to GitHub with gitd's public App (GitHub's device flow): the answer
// has the code the person enters at GitHub.
StartGitHubLogin(context.Context, *connect.Request[v1.StartGitHubLoginRequest]) (*connect.Response[v1.StartGitHubLoginResponse], error)
// Wait until the person has entered the code, and keep the sign-in. Pull requests then
// appear as that person.
FinishGitHubLogin(context.Context, *connect.Request[v1.FinishGitHubLoginRequest]) (*connect.Response[v1.FinishGitHubLoginResponse], error)
// Keep a GitHub App the platform already has, by its ID and private key.
AddGitHubApp(context.Context, *connect.Request[v1.AddGitHubAppRequest]) (*connect.Response[v1.AddGitHubAppResponse], error)
// Keep a token for the repositories under a prefix, on any host.
AddToken(context.Context, *connect.Request[v1.AddTokenRequest]) (*connect.Response[v1.AddTokenResponse], error)
// The connections gitd keeps, those of the configuration file included, never a secret.
ListConnections(context.Context, *connect.Request[v1.ListConnectionsRequest]) (*connect.Response[v1.ListConnectionsResponse], error)
// Forget a connection made through the API. One from the configuration file is refused.
RemoveConnection(context.Context, *connect.Request[v1.RemoveConnectionRequest]) (*connect.Response[v1.RemoveConnectionResponse], error)
}
ConnectionServiceHandler is an implementation of the gitd.v1.ConnectionService service.
type EndpointServiceClient ¶
type EndpointServiceClient interface {
// A token for a sandbox, with the address it clones from. The repository's pool is
// synced first, with the credential gitd keeps.
IssueToken(context.Context, *connect.Request[v1.IssueTokenRequest]) (*connect.Response[v1.IssueTokenResponse], error)
// End a token now, and remove its sandbox repository when asked.
RevokeToken(context.Context, *connect.Request[v1.RevokeTokenRequest]) (*connect.Response[v1.RevokeTokenResponse], error)
// The tokens alive, never their secrets.
ListTokens(context.Context, *connect.Request[v1.ListTokensRequest]) (*connect.Response[v1.ListTokensResponse], error)
}
EndpointServiceClient is a client for the gitd.v1.EndpointService service.
func NewEndpointServiceClient ¶
func NewEndpointServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EndpointServiceClient
NewEndpointServiceClient constructs a client for the gitd.v1.EndpointService 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 EndpointServiceHandler ¶
type EndpointServiceHandler interface {
// A token for a sandbox, with the address it clones from. The repository's pool is
// synced first, with the credential gitd keeps.
IssueToken(context.Context, *connect.Request[v1.IssueTokenRequest]) (*connect.Response[v1.IssueTokenResponse], error)
// End a token now, and remove its sandbox repository when asked.
RevokeToken(context.Context, *connect.Request[v1.RevokeTokenRequest]) (*connect.Response[v1.RevokeTokenResponse], error)
// The tokens alive, never their secrets.
ListTokens(context.Context, *connect.Request[v1.ListTokensRequest]) (*connect.Response[v1.ListTokensResponse], error)
}
EndpointServiceHandler is an implementation of the gitd.v1.EndpointService service.
type PublishingServiceClient ¶
type PublishingServiceClient interface {
// Every setting, those of the configuration file included.
GetSettings(context.Context, *connect.Request[v1.GetSettingsRequest]) (*connect.Response[v1.GetSettingsResponse], error)
// Keep the settings of a prefix, replacing those it had.
SetSettings(context.Context, *connect.Request[v1.SetSettingsRequest]) (*connect.Response[v1.SetSettingsResponse], error)
// Forget the settings of a prefix. Those of the configuration file are refused.
RemoveSettings(context.Context, *connect.Request[v1.RemoveSettingsRequest]) (*connect.Response[v1.RemoveSettingsResponse], error)
// Every preset: gitd's own (`recommended`), the configuration file's and those set
// through the API, as they apply.
ListPresets(context.Context, *connect.Request[v1.ListPresetsRequest]) (*connect.Response[v1.ListPresetsResponse], error)
// Keep a preset, replacing one of the same name; one named `recommended` replaces gitd's.
SetPreset(context.Context, *connect.Request[v1.SetPresetRequest]) (*connect.Response[v1.SetPresetResponse], error)
// Forget a preset set through the API: refused while settings use it, unless gitd has its
// own of that name, which then applies again.
RemovePreset(context.Context, *connect.Request[v1.RemovePresetRequest]) (*connect.Response[v1.RemovePresetResponse], error)
}
PublishingServiceClient is a client for the gitd.v1.PublishingService service.
func NewPublishingServiceClient ¶
func NewPublishingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PublishingServiceClient
NewPublishingServiceClient constructs a client for the gitd.v1.PublishingService 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 PublishingServiceHandler ¶
type PublishingServiceHandler interface {
// Every setting, those of the configuration file included.
GetSettings(context.Context, *connect.Request[v1.GetSettingsRequest]) (*connect.Response[v1.GetSettingsResponse], error)
// Keep the settings of a prefix, replacing those it had.
SetSettings(context.Context, *connect.Request[v1.SetSettingsRequest]) (*connect.Response[v1.SetSettingsResponse], error)
// Forget the settings of a prefix. Those of the configuration file are refused.
RemoveSettings(context.Context, *connect.Request[v1.RemoveSettingsRequest]) (*connect.Response[v1.RemoveSettingsResponse], error)
// Every preset: gitd's own (`recommended`), the configuration file's and those set
// through the API, as they apply.
ListPresets(context.Context, *connect.Request[v1.ListPresetsRequest]) (*connect.Response[v1.ListPresetsResponse], error)
// Keep a preset, replacing one of the same name; one named `recommended` replaces gitd's.
SetPreset(context.Context, *connect.Request[v1.SetPresetRequest]) (*connect.Response[v1.SetPresetResponse], error)
// Forget a preset set through the API: refused while settings use it, unless gitd has its
// own of that name, which then applies again.
RemovePreset(context.Context, *connect.Request[v1.RemovePresetRequest]) (*connect.Response[v1.RemovePresetResponse], error)
}
PublishingServiceHandler is an implementation of the gitd.v1.PublishingService service.
type RepositoryServiceClient ¶
type RepositoryServiceClient interface {
// Whether a repository can be read with these credentials, and its branches.
Probe(context.Context, *connect.Request[v1.ProbeRequest]) (*connect.Response[v1.ProbeResponse], error)
}
RepositoryServiceClient is a client for the gitd.v1.RepositoryService service.
func NewRepositoryServiceClient ¶
func NewRepositoryServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RepositoryServiceClient
NewRepositoryServiceClient constructs a client for the gitd.v1.RepositoryService 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 RepositoryServiceHandler ¶
type RepositoryServiceHandler interface {
// Whether a repository can be read with these credentials, and its branches.
Probe(context.Context, *connect.Request[v1.ProbeRequest]) (*connect.Response[v1.ProbeResponse], error)
}
RepositoryServiceHandler is an implementation of the gitd.v1.RepositoryService service.
type ServerServiceClient ¶
type ServerServiceClient interface {
// Which gitd answers, and on which git, so a client can tell whether it may use it.
Info(context.Context, *connect.Request[v1.InfoRequest]) (*connect.Response[v1.InfoResponse], error)
// Remove now the pools no workspace borrows from and nothing has used for at least
// `unused_for_seconds`, as the maintenance round does after `retire_after`.
Retire(context.Context, *connect.Request[v1.RetireRequest]) (*connect.Response[v1.RetireResponse], error)
// The audit log: every publish, done or refused, and every change to connections and
// publishing settings, newest first.
Audit(context.Context, *connect.Request[v1.AuditRequest]) (*connect.Response[v1.AuditResponse], error)
}
ServerServiceClient is a client for the gitd.v1.ServerService service.
func NewServerServiceClient ¶
func NewServerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ServerServiceClient
NewServerServiceClient constructs a client for the gitd.v1.ServerService 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 ServerServiceHandler ¶
type ServerServiceHandler interface {
// Which gitd answers, and on which git, so a client can tell whether it may use it.
Info(context.Context, *connect.Request[v1.InfoRequest]) (*connect.Response[v1.InfoResponse], error)
// Remove now the pools no workspace borrows from and nothing has used for at least
// `unused_for_seconds`, as the maintenance round does after `retire_after`.
Retire(context.Context, *connect.Request[v1.RetireRequest]) (*connect.Response[v1.RetireResponse], error)
// The audit log: every publish, done or refused, and every change to connections and
// publishing settings, newest first.
Audit(context.Context, *connect.Request[v1.AuditRequest]) (*connect.Response[v1.AuditResponse], error)
}
ServerServiceHandler is an implementation of the gitd.v1.ServerService service.
type UnimplementedConnectionServiceHandler ¶
type UnimplementedConnectionServiceHandler struct{}
UnimplementedConnectionServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedConnectionServiceHandler) AddGitHubApp ¶
func (UnimplementedConnectionServiceHandler) AddGitHubApp(context.Context, *connect.Request[v1.AddGitHubAppRequest]) (*connect.Response[v1.AddGitHubAppResponse], error)
func (UnimplementedConnectionServiceHandler) AddToken ¶
func (UnimplementedConnectionServiceHandler) AddToken(context.Context, *connect.Request[v1.AddTokenRequest]) (*connect.Response[v1.AddTokenResponse], error)
func (UnimplementedConnectionServiceHandler) BeginGitHubApp ¶
func (UnimplementedConnectionServiceHandler) BeginGitHubApp(context.Context, *connect.Request[v1.BeginGitHubAppRequest]) (*connect.Response[v1.BeginGitHubAppResponse], error)
func (UnimplementedConnectionServiceHandler) CompleteGitHubApp ¶
func (UnimplementedConnectionServiceHandler) CompleteGitHubApp(context.Context, *connect.Request[v1.CompleteGitHubAppRequest]) (*connect.Response[v1.CompleteGitHubAppResponse], error)
func (UnimplementedConnectionServiceHandler) FinishGitHubLogin ¶
func (UnimplementedConnectionServiceHandler) FinishGitHubLogin(context.Context, *connect.Request[v1.FinishGitHubLoginRequest]) (*connect.Response[v1.FinishGitHubLoginResponse], error)
func (UnimplementedConnectionServiceHandler) ListConnections ¶
func (UnimplementedConnectionServiceHandler) ListConnections(context.Context, *connect.Request[v1.ListConnectionsRequest]) (*connect.Response[v1.ListConnectionsResponse], error)
func (UnimplementedConnectionServiceHandler) RemoveConnection ¶
func (UnimplementedConnectionServiceHandler) RemoveConnection(context.Context, *connect.Request[v1.RemoveConnectionRequest]) (*connect.Response[v1.RemoveConnectionResponse], error)
func (UnimplementedConnectionServiceHandler) StartGitHubLogin ¶
func (UnimplementedConnectionServiceHandler) StartGitHubLogin(context.Context, *connect.Request[v1.StartGitHubLoginRequest]) (*connect.Response[v1.StartGitHubLoginResponse], error)
type UnimplementedEndpointServiceHandler ¶
type UnimplementedEndpointServiceHandler struct{}
UnimplementedEndpointServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedEndpointServiceHandler) IssueToken ¶
func (UnimplementedEndpointServiceHandler) IssueToken(context.Context, *connect.Request[v1.IssueTokenRequest]) (*connect.Response[v1.IssueTokenResponse], error)
func (UnimplementedEndpointServiceHandler) ListTokens ¶
func (UnimplementedEndpointServiceHandler) ListTokens(context.Context, *connect.Request[v1.ListTokensRequest]) (*connect.Response[v1.ListTokensResponse], error)
func (UnimplementedEndpointServiceHandler) RevokeToken ¶
func (UnimplementedEndpointServiceHandler) RevokeToken(context.Context, *connect.Request[v1.RevokeTokenRequest]) (*connect.Response[v1.RevokeTokenResponse], error)
type UnimplementedPublishingServiceHandler ¶
type UnimplementedPublishingServiceHandler struct{}
UnimplementedPublishingServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedPublishingServiceHandler) GetSettings ¶
func (UnimplementedPublishingServiceHandler) GetSettings(context.Context, *connect.Request[v1.GetSettingsRequest]) (*connect.Response[v1.GetSettingsResponse], error)
func (UnimplementedPublishingServiceHandler) ListPresets ¶
func (UnimplementedPublishingServiceHandler) ListPresets(context.Context, *connect.Request[v1.ListPresetsRequest]) (*connect.Response[v1.ListPresetsResponse], error)
func (UnimplementedPublishingServiceHandler) RemovePreset ¶
func (UnimplementedPublishingServiceHandler) RemovePreset(context.Context, *connect.Request[v1.RemovePresetRequest]) (*connect.Response[v1.RemovePresetResponse], error)
func (UnimplementedPublishingServiceHandler) RemoveSettings ¶
func (UnimplementedPublishingServiceHandler) RemoveSettings(context.Context, *connect.Request[v1.RemoveSettingsRequest]) (*connect.Response[v1.RemoveSettingsResponse], error)
func (UnimplementedPublishingServiceHandler) SetPreset ¶
func (UnimplementedPublishingServiceHandler) SetPreset(context.Context, *connect.Request[v1.SetPresetRequest]) (*connect.Response[v1.SetPresetResponse], error)
func (UnimplementedPublishingServiceHandler) SetSettings ¶
func (UnimplementedPublishingServiceHandler) SetSettings(context.Context, *connect.Request[v1.SetSettingsRequest]) (*connect.Response[v1.SetSettingsResponse], error)
type UnimplementedRepositoryServiceHandler ¶
type UnimplementedRepositoryServiceHandler struct{}
UnimplementedRepositoryServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedRepositoryServiceHandler) Probe ¶
func (UnimplementedRepositoryServiceHandler) Probe(context.Context, *connect.Request[v1.ProbeRequest]) (*connect.Response[v1.ProbeResponse], error)
type UnimplementedServerServiceHandler ¶
type UnimplementedServerServiceHandler struct{}
UnimplementedServerServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedServerServiceHandler) Audit ¶
func (UnimplementedServerServiceHandler) Audit(context.Context, *connect.Request[v1.AuditRequest]) (*connect.Response[v1.AuditResponse], error)
func (UnimplementedServerServiceHandler) Info ¶
func (UnimplementedServerServiceHandler) Info(context.Context, *connect.Request[v1.InfoRequest]) (*connect.Response[v1.InfoResponse], error)
func (UnimplementedServerServiceHandler) Retire ¶
func (UnimplementedServerServiceHandler) Retire(context.Context, *connect.Request[v1.RetireRequest]) (*connect.Response[v1.RetireResponse], error)
type UnimplementedWorkspaceServiceHandler ¶
type UnimplementedWorkspaceServiceHandler struct{}
UnimplementedWorkspaceServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedWorkspaceServiceHandler) Adopt ¶
func (UnimplementedWorkspaceServiceHandler) Adopt(context.Context, *connect.Request[v1.AdoptRequest], *connect.ServerStream[v1.AdoptResponse]) error
func (UnimplementedWorkspaceServiceHandler) Changes ¶
func (UnimplementedWorkspaceServiceHandler) Changes(context.Context, *connect.Request[v1.ChangesRequest]) (*connect.Response[v1.ChangesResponse], error)
func (UnimplementedWorkspaceServiceHandler) Checkout ¶
func (UnimplementedWorkspaceServiceHandler) Checkout(context.Context, *connect.Request[v1.CheckoutRequest], *connect.ServerStream[v1.CheckoutResponse]) error
func (UnimplementedWorkspaceServiceHandler) Compare ¶
func (UnimplementedWorkspaceServiceHandler) Compare(context.Context, *connect.Request[v1.CompareRequest]) (*connect.Response[v1.CompareResponse], error)
func (UnimplementedWorkspaceServiceHandler) Conflicts ¶
func (UnimplementedWorkspaceServiceHandler) Conflicts(context.Context, *connect.Request[v1.ConflictsRequest]) (*connect.Response[v1.ConflictsResponse], error)
func (UnimplementedWorkspaceServiceHandler) Describe ¶
func (UnimplementedWorkspaceServiceHandler) Describe(context.Context, *connect.Request[v1.DescribeRequest]) (*connect.Response[v1.DescribeResponse], error)
func (UnimplementedWorkspaceServiceHandler) Diff ¶
func (UnimplementedWorkspaceServiceHandler) Diff(context.Context, *connect.Request[v1.DiffRequest]) (*connect.Response[v1.DiffResponse], error)
func (UnimplementedWorkspaceServiceHandler) List ¶ added in v0.15.0
func (UnimplementedWorkspaceServiceHandler) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
func (UnimplementedWorkspaceServiceHandler) ListWarm ¶
func (UnimplementedWorkspaceServiceHandler) ListWarm(context.Context, *connect.Request[v1.ListWarmRequest]) (*connect.Response[v1.ListWarmResponse], error)
func (UnimplementedWorkspaceServiceHandler) Prepare ¶
func (UnimplementedWorkspaceServiceHandler) Prepare(context.Context, *connect.Request[v1.PrepareRequest], *connect.ServerStream[v1.PrepareResponse]) error
func (UnimplementedWorkspaceServiceHandler) Publish ¶
func (UnimplementedWorkspaceServiceHandler) Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
func (UnimplementedWorkspaceServiceHandler) Remove ¶
func (UnimplementedWorkspaceServiceHandler) Remove(context.Context, *connect.Request[v1.RemoveRequest]) (*connect.Response[v1.RemoveResponse], error)
func (UnimplementedWorkspaceServiceHandler) Seal ¶
func (UnimplementedWorkspaceServiceHandler) Seal(context.Context, *connect.Request[v1.SealRequest]) (*connect.Response[v1.SealResponse], error)
func (UnimplementedWorkspaceServiceHandler) SyncSubmodules ¶
func (UnimplementedWorkspaceServiceHandler) SyncSubmodules(context.Context, *connect.Request[v1.SyncSubmodulesRequest], *connect.ServerStream[v1.SyncSubmodulesResponse]) error
func (UnimplementedWorkspaceServiceHandler) Update ¶
func (UnimplementedWorkspaceServiceHandler) Update(context.Context, *connect.Request[v1.UpdateRequest], *connect.ServerStream[v1.UpdateResponse]) error
func (UnimplementedWorkspaceServiceHandler) Watch ¶
func (UnimplementedWorkspaceServiceHandler) Watch(context.Context, *connect.Request[v1.WatchRequest], *connect.ServerStream[v1.WatchResponse]) error
type WorkspaceServiceClient ¶
type WorkspaceServiceClient interface {
// Create a workspace at a path, from the repository's pool, at a branch or a commit.
Prepare(context.Context, *connect.Request[v1.PrepareRequest]) (*connect.ServerStreamForClient[v1.PrepareResponse], error)
// Bring a workspace to the tip of its branch, or merge another branch of its repository
// into the one it is on.
Update(context.Context, *connect.Request[v1.UpdateRequest]) (*connect.ServerStreamForClient[v1.UpdateResponse], error)
// Move a workspace to a commit, as a rollback does; the pool fetches it when it lacks it.
Checkout(context.Context, *connect.Request[v1.CheckoutRequest]) (*connect.ServerStreamForClient[v1.CheckoutResponse], error)
// Check out every submodule the workspace declares, or one.
SyncSubmodules(context.Context, *connect.Request[v1.SyncSubmodulesRequest]) (*connect.ServerStreamForClient[v1.SyncSubmodulesResponse], error)
// What the workspace is on disk right now, without the network.
Describe(context.Context, *connect.Request[v1.DescribeRequest]) (*connect.Response[v1.DescribeResponse], error)
// Delete a workspace. Its pool stays.
Remove(context.Context, *connect.Request[v1.RemoveRequest]) (*connect.Response[v1.RemoveResponse], error)
// Every workspace gitd made, with what Describe says of each and the branches published
// from it.
List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
// Take an existing clone in, linking it to a pool without fetching anything.
Adopt(context.Context, *connect.Request[v1.AdoptRequest]) (*connect.ServerStreamForClient[v1.AdoptResponse], error)
// Push what was committed in a workspace to a new branch, with a token, so a pull or merge
// request can be opened from it — or, with update, move an earlier publish's branch
// forward and update its pull request. New commits of its submodules go first, each to a
// branch of the same name in its own repository. The branch must start with the
// configured prefix, if there is one; every publish, done or refused, is in the audit log.
Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
// What was changed in a workspace since gitd last put it on a commit — committed or not:
// each file added, modified or deleted, with its lines. On an overlay workspace it is read
// from the agent's own layer, and no git runs in the workspace.
Changes(context.Context, *connect.Request[v1.ChangesRequest]) (*connect.Response[v1.ChangesResponse], error)
// The unified diff of a workspace's changes, of some files or all, cut short at a size.
Diff(context.Context, *connect.Request[v1.DiffRequest]) (*connect.Response[v1.DiffResponse], error)
// How two works differ — two workspaces, two published branches, or one of each — file by
// file, with their lines and, when asked, their diff: what choosing between attempts at
// one task needs.
Compare(context.Context, *connect.Request[v1.CompareRequest]) (*connect.Response[v1.CompareResponse], error)
// Whether the committed work of several workspaces or published branches merges cleanly,
// pair by pair, and on which files it does not. Read with git merge-tree in the pool,
// running none of the repository's code.
Conflicts(context.Context, *connect.Request[v1.ConflictsRequest]) (*connect.Response[v1.ConflictsResponse], error)
// What happens to workspaces as it happens: made, changed, published, refused, removed.
Watch(context.Context, *connect.Request[v1.WatchRequest]) (*connect.ServerStreamForClient[v1.WatchResponse], error)
// Seal an overlay workspace's own layer — what installing its dependencies wrote — as a
// warm layer of its repository, named, for later workspaces at the same commit to stand
// on (PrepareRequest.warm) instead of installing again. The workspace is removed: its
// layer is moved, not copied.
Seal(context.Context, *connect.Request[v1.SealRequest]) (*connect.Response[v1.SealResponse], error)
// The warm layers of a repository.
ListWarm(context.Context, *connect.Request[v1.ListWarmRequest]) (*connect.Response[v1.ListWarmResponse], error)
}
WorkspaceServiceClient is a client for the gitd.v1.WorkspaceService service.
func NewWorkspaceServiceClient ¶
func NewWorkspaceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WorkspaceServiceClient
NewWorkspaceServiceClient constructs a client for the gitd.v1.WorkspaceService 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 WorkspaceServiceHandler ¶
type WorkspaceServiceHandler interface {
// Create a workspace at a path, from the repository's pool, at a branch or a commit.
Prepare(context.Context, *connect.Request[v1.PrepareRequest], *connect.ServerStream[v1.PrepareResponse]) error
// Bring a workspace to the tip of its branch, or merge another branch of its repository
// into the one it is on.
Update(context.Context, *connect.Request[v1.UpdateRequest], *connect.ServerStream[v1.UpdateResponse]) error
// Move a workspace to a commit, as a rollback does; the pool fetches it when it lacks it.
Checkout(context.Context, *connect.Request[v1.CheckoutRequest], *connect.ServerStream[v1.CheckoutResponse]) error
// Check out every submodule the workspace declares, or one.
SyncSubmodules(context.Context, *connect.Request[v1.SyncSubmodulesRequest], *connect.ServerStream[v1.SyncSubmodulesResponse]) error
// What the workspace is on disk right now, without the network.
Describe(context.Context, *connect.Request[v1.DescribeRequest]) (*connect.Response[v1.DescribeResponse], error)
// Delete a workspace. Its pool stays.
Remove(context.Context, *connect.Request[v1.RemoveRequest]) (*connect.Response[v1.RemoveResponse], error)
// Every workspace gitd made, with what Describe says of each and the branches published
// from it.
List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
// Take an existing clone in, linking it to a pool without fetching anything.
Adopt(context.Context, *connect.Request[v1.AdoptRequest], *connect.ServerStream[v1.AdoptResponse]) error
// Push what was committed in a workspace to a new branch, with a token, so a pull or merge
// request can be opened from it — or, with update, move an earlier publish's branch
// forward and update its pull request. New commits of its submodules go first, each to a
// branch of the same name in its own repository. The branch must start with the
// configured prefix, if there is one; every publish, done or refused, is in the audit log.
Publish(context.Context, *connect.Request[v1.PublishRequest]) (*connect.Response[v1.PublishResponse], error)
// What was changed in a workspace since gitd last put it on a commit — committed or not:
// each file added, modified or deleted, with its lines. On an overlay workspace it is read
// from the agent's own layer, and no git runs in the workspace.
Changes(context.Context, *connect.Request[v1.ChangesRequest]) (*connect.Response[v1.ChangesResponse], error)
// The unified diff of a workspace's changes, of some files or all, cut short at a size.
Diff(context.Context, *connect.Request[v1.DiffRequest]) (*connect.Response[v1.DiffResponse], error)
// How two works differ — two workspaces, two published branches, or one of each — file by
// file, with their lines and, when asked, their diff: what choosing between attempts at
// one task needs.
Compare(context.Context, *connect.Request[v1.CompareRequest]) (*connect.Response[v1.CompareResponse], error)
// Whether the committed work of several workspaces or published branches merges cleanly,
// pair by pair, and on which files it does not. Read with git merge-tree in the pool,
// running none of the repository's code.
Conflicts(context.Context, *connect.Request[v1.ConflictsRequest]) (*connect.Response[v1.ConflictsResponse], error)
// What happens to workspaces as it happens: made, changed, published, refused, removed.
Watch(context.Context, *connect.Request[v1.WatchRequest], *connect.ServerStream[v1.WatchResponse]) error
// Seal an overlay workspace's own layer — what installing its dependencies wrote — as a
// warm layer of its repository, named, for later workspaces at the same commit to stand
// on (PrepareRequest.warm) instead of installing again. The workspace is removed: its
// layer is moved, not copied.
Seal(context.Context, *connect.Request[v1.SealRequest]) (*connect.Response[v1.SealResponse], error)
// The warm layers of a repository.
ListWarm(context.Context, *connect.Request[v1.ListWarmRequest]) (*connect.Response[v1.ListWarmResponse], error)
}
WorkspaceServiceHandler is an implementation of the gitd.v1.WorkspaceService service.