Documentation
¶
Overview ¶
Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. source: github.com/containerd/containerd/api/services/diff/v1/diff.proto
Index ¶
- Variables
- func RegisterDiffServer(s grpc.ServiceRegistrar, srv DiffServer)
- func RegisterTTRPCDiffService(srv *ttrpc.Server, svc TTRPCDiffService)
- type ApplyRequest
- func (*ApplyRequest) Descriptor() ([]byte, []int)deprecated
- 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
- type DiffClient
- type DiffRequest
- func (*DiffRequest) Descriptor() ([]byte, []int)deprecated
- 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
- type DiffServer
- type TTRPCDiffService
- type UnimplementedDiffServer
- type UnsafeDiffServer
Constants ¶
This section is empty.
Variables ¶
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: "github.com/containerd/containerd/api/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_github_com_containerd_containerd_api_services_diff_v1_diff_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDiffServer ¶
func RegisterDiffServer(s grpc.ServiceRegistrar, srv DiffServer)
func RegisterTTRPCDiffService ¶ added in v1.8.0
func RegisterTTRPCDiffService(srv *ttrpc.Server, svc TTRPCDiffService)
Types ¶
type ApplyRequest ¶
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
deprecated
func (*ApplyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.
func (*ApplyRequest) GetDiff ¶
func (x *ApplyRequest) GetDiff() *types.Descriptor
func (*ApplyRequest) GetMounts ¶
func (x *ApplyRequest) GetMounts() []*types.Mount
func (*ApplyRequest) GetPayloads ¶
func (x *ApplyRequest) GetPayloads() map[string]*anypb.Any
func (*ApplyRequest) GetSyncFs ¶
func (x *ApplyRequest) GetSyncFs() bool
func (*ApplyRequest) ProtoMessage ¶
func (*ApplyRequest) ProtoMessage()
func (*ApplyRequest) ProtoReflect ¶
func (x *ApplyRequest) ProtoReflect() protoreflect.Message
func (*ApplyRequest) Reset ¶
func (x *ApplyRequest) Reset()
func (*ApplyRequest) String ¶
func (x *ApplyRequest) String() string
type ApplyResponse ¶
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
deprecated
func (*ApplyResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplyResponse.ProtoReflect.Descriptor instead.
func (*ApplyResponse) GetApplied ¶
func (x *ApplyResponse) GetApplied() *types.Descriptor
func (*ApplyResponse) ProtoMessage ¶
func (*ApplyResponse) ProtoMessage()
func (*ApplyResponse) ProtoReflect ¶
func (x *ApplyResponse) ProtoReflect() protoreflect.Message
func (*ApplyResponse) Reset ¶
func (x *ApplyResponse) Reset()
func (*ApplyResponse) String ¶
func (x *ApplyResponse) String() string
type DiffClient ¶
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 ¶
func NewDiffClient(cc grpc.ClientConnInterface) DiffClient
type DiffRequest ¶
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
deprecated
func (*DiffRequest) Descriptor() ([]byte, []int)
Deprecated: Use DiffRequest.ProtoReflect.Descriptor instead.
func (*DiffRequest) GetLabels ¶
func (x *DiffRequest) GetLabels() map[string]string
func (*DiffRequest) GetLeft ¶
func (x *DiffRequest) GetLeft() []*types.Mount
func (*DiffRequest) GetMediaType ¶
func (x *DiffRequest) GetMediaType() string
func (*DiffRequest) GetRef ¶
func (x *DiffRequest) GetRef() string
func (*DiffRequest) GetRight ¶
func (x *DiffRequest) GetRight() []*types.Mount
func (*DiffRequest) GetSourceDateEpoch ¶
func (x *DiffRequest) GetSourceDateEpoch() *timestamppb.Timestamp
func (*DiffRequest) ProtoMessage ¶
func (*DiffRequest) ProtoMessage()
func (*DiffRequest) ProtoReflect ¶
func (x *DiffRequest) ProtoReflect() protoreflect.Message
func (*DiffRequest) Reset ¶
func (x *DiffRequest) Reset()
func (*DiffRequest) String ¶
func (x *DiffRequest) String() string
type DiffResponse ¶
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
deprecated
func (*DiffResponse) Descriptor() ([]byte, []int)
Deprecated: Use DiffResponse.ProtoReflect.Descriptor instead.
func (*DiffResponse) GetDiff ¶
func (x *DiffResponse) GetDiff() *types.Descriptor
func (*DiffResponse) ProtoMessage ¶
func (*DiffResponse) ProtoMessage()
func (*DiffResponse) ProtoReflect ¶
func (x *DiffResponse) ProtoReflect() protoreflect.Message
func (*DiffResponse) Reset ¶
func (x *DiffResponse) Reset()
func (*DiffResponse) String ¶
func (x *DiffResponse) String() string
type DiffServer ¶
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 ¶ added in v1.8.0
type TTRPCDiffService interface {
Apply(context.Context, *ApplyRequest) (*ApplyResponse, error)
Diff(context.Context, *DiffRequest) (*DiffResponse, error)
}
func NewTTRPCDiffClient ¶ added in v1.8.0
func NewTTRPCDiffClient(client *ttrpc.Client) TTRPCDiffService
type UnimplementedDiffServer ¶
type UnimplementedDiffServer struct {
}
UnimplementedDiffServer must be embedded to have forward compatible implementations.
func (UnimplementedDiffServer) Apply ¶
func (UnimplementedDiffServer) Apply(context.Context, *ApplyRequest) (*ApplyResponse, error)
func (UnimplementedDiffServer) Diff ¶
func (UnimplementedDiffServer) Diff(context.Context, *DiffRequest) (*DiffResponse, error)
type UnsafeDiffServer ¶
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.