| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This package is not in the latest version of its module.
Go to latest Published: May 20, 2026 License: Apache-2.0The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Modules with tagged versions give importers more predictable builds.
When a project reaches major version v1 it is considered stable.
Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. source: services/diff/v1/diff.proto
This section is empty.
var Diff_ServiceDesc = grpc.ServiceDesc{ ServiceName: "containerd.services.diff.v1.Diff", HandlerType: (*DiffServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Apply", Handler: _Diff_Apply_Handler, }, { MethodName: "Diff", Handler: _Diff_Diff_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/diff/v1/diff.proto", }
Diff_ServiceDesc is the grpc.ServiceDesc for Diff service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_services_diff_v1_diff_proto protoreflect.FileDescriptor
func RegisterDiffServer(s grpc.ServiceRegistrar, srv DiffServer)
func RegisterTTRPCDiffService(srv *ttrpc.Server, svc TTRPCDiffService)
type ApplyRequest struct {
// Diff is the descriptor of the diff to be extracted
Diff *types.Descriptor `protobuf:"bytes,1,opt,name=diff,proto3" json:"diff,omitempty"`
Mounts []*types.Mount `protobuf:"bytes,2,rep,name=mounts,proto3" json:"mounts,omitempty"`
Payloads map[string]*anypb.Any `` /* 157-byte string literal not displayed */
// SyncFs is to synchronize the underlying filesystem containing files.
SyncFs bool `protobuf:"varint,4,opt,name=sync_fs,json=syncFs,proto3" json:"sync_fs,omitempty"`
// contains filtered or unexported fields
}
func (*ApplyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.
func (x *ApplyRequest) GetDiff() *types.Descriptor
func (x *ApplyRequest) GetMounts() []*types.Mount
func (x *ApplyRequest) GetPayloads() map[string]*anypb.Any
func (x *ApplyRequest) GetSyncFs() bool
func (*ApplyRequest) ProtoMessage()
func (x *ApplyRequest) ProtoReflect() protoreflect.Message
func (x *ApplyRequest) Reset()
func (x *ApplyRequest) String() string
type ApplyResponse struct {
// Applied is the descriptor for the object which was applied.
// If the input was a compressed blob then the result will be
// the descriptor for the uncompressed blob.
Applied *types.Descriptor `protobuf:"bytes,1,opt,name=applied,proto3" json:"applied,omitempty"`
// contains filtered or unexported fields
}
func (*ApplyResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplyResponse.ProtoReflect.Descriptor instead.
func (x *ApplyResponse) GetApplied() *types.Descriptor
func (*ApplyResponse) ProtoMessage()
func (x *ApplyResponse) ProtoReflect() protoreflect.Message
func (x *ApplyResponse) Reset()
func (x *ApplyResponse) String() string
type DiffClient interface {
// Apply applies the content associated with the provided digests onto
// the provided mounts. Archive content will be extracted and
// decompressed if necessary.
Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*ApplyResponse, error)
// Diff creates a diff between the given mounts and uploads the result
// to the content store.
Diff(ctx context.Context, in *DiffRequest, opts ...grpc.CallOption) (*DiffResponse, error)
}
DiffClient is the client API for Diff service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDiffClient(cc grpc.ClientConnInterface) DiffClient
type DiffRequest struct {
// Left are the mounts which represent the older copy
// in which is the base of the computed changes.
Left []*types.Mount `protobuf:"bytes,1,rep,name=left,proto3" json:"left,omitempty"`
// Right are the mounts which represents the newer copy
// in which changes from the left were made into.
Right []*types.Mount `protobuf:"bytes,2,rep,name=right,proto3" json:"right,omitempty"`
// MediaType is the media type descriptor for the created diff
// object
MediaType string `protobuf:"bytes,3,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
// Ref identifies the pre-commit content store object. This
// reference can be used to get the status from the content store.
Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
// Labels are the labels to apply to the generated content
// on content store commit.
Labels map[string]string `` /* 153-byte string literal not displayed */
// SourceDateEpoch specifies the timestamp used to provide control for reproducibility.
// See also https://reproducible-builds.org/docs/source-date-epoch/ .
//
// Since containerd v2.0, the whiteout timestamps are set to zero (1970-01-01),
// not to the source date epoch.
SourceDateEpoch *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=source_date_epoch,json=sourceDateEpoch,proto3" json:"source_date_epoch,omitempty"`
// contains filtered or unexported fields
}
func (*DiffRequest) Descriptor() ([]byte, []int)
Deprecated: Use DiffRequest.ProtoReflect.Descriptor instead.
func (x *DiffRequest) GetLabels() map[string]string
func (x *DiffRequest) GetLeft() []*types.Mount
func (x *DiffRequest) GetMediaType() string
func (x *DiffRequest) GetRef() string
func (x *DiffRequest) GetRight() []*types.Mount
func (x *DiffRequest) GetSourceDateEpoch() *timestamppb.Timestamp
func (*DiffRequest) ProtoMessage()
func (x *DiffRequest) ProtoReflect() protoreflect.Message
func (x *DiffRequest) Reset()
func (x *DiffRequest) String() string
type DiffResponse struct {
// Diff is the descriptor of the diff which can be applied
Diff *types.Descriptor `protobuf:"bytes,3,opt,name=diff,proto3" json:"diff,omitempty"`
// contains filtered or unexported fields
}
func (*DiffResponse) Descriptor() ([]byte, []int)
Deprecated: Use DiffResponse.ProtoReflect.Descriptor instead.
func (x *DiffResponse) GetDiff() *types.Descriptor
func (*DiffResponse) ProtoMessage()
func (x *DiffResponse) ProtoReflect() protoreflect.Message
func (x *DiffResponse) Reset()
func (x *DiffResponse) String() string
type DiffServer interface {
// Apply applies the content associated with the provided digests onto
// the provided mounts. Archive content will be extracted and
// decompressed if necessary.
Apply(context.Context, *ApplyRequest) (*ApplyResponse, error)
// Diff creates a diff between the given mounts and uploads the result
// to the content store.
Diff(context.Context, *DiffRequest) (*DiffResponse, error)
// contains filtered or unexported methods
}
DiffServer is the server API for Diff service. All implementations must embed UnimplementedDiffServer for forward compatibility
type TTRPCDiffService interface {
Apply(context.Context, *ApplyRequest) (*ApplyResponse, error)
Diff(context.Context, *DiffRequest) (*DiffResponse, error)
}
func NewTTRPCDiffClient(client *ttrpc.Client) TTRPCDiffService
type UnimplementedDiffServer struct {
}
UnimplementedDiffServer must be embedded to have forward compatible implementations.
func (UnimplementedDiffServer) Apply(context.Context, *ApplyRequest) (*ApplyResponse, error)
func (UnimplementedDiffServer) Diff(context.Context, *DiffRequest) (*DiffResponse, error)
type UnsafeDiffServer interface {
// contains filtered or unexported methods
}
UnsafeDiffServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiffServer will result in compilation errors.
| Back | FazBrowse Home | New Git URL |