Documentation ¶
Index ¶
- Variables
- func RegisterDiffServer(s grpc.ServiceRegistrar, srv DiffServer)
- 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 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)
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 ¶ added in v1.7.0
func (x *ApplyRequest) GetDiff() *types.Descriptor
func (*ApplyRequest) GetMounts ¶ added in v1.7.0
func (x *ApplyRequest) GetMounts() []*types.Mount
func (*ApplyRequest) GetPayloads ¶ added in v1.7.0
func (x *ApplyRequest) GetPayloads() map[string]*anypb.Any
func (*ApplyRequest) GetSyncFs ¶ added in v1.7.14
func (x *ApplyRequest) GetSyncFs() bool
func (*ApplyRequest) ProtoMessage ¶
func (*ApplyRequest) ProtoMessage()
func (*ApplyRequest) ProtoReflect ¶ added in v1.7.0
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 ¶ added in v1.7.0
func (x *ApplyResponse) GetApplied() *types.Descriptor
func (*ApplyResponse) ProtoMessage ¶
func (*ApplyResponse) ProtoMessage()
func (*ApplyResponse) ProtoReflect ¶ added in v1.7.0
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 for whiteouts to provide control for reproducibility. // See also https://reproducible-builds.org/docs/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 ¶ added in v1.7.0
func (x *DiffRequest) GetLabels() map[string]string
func (*DiffRequest) GetLeft ¶ added in v1.7.0
func (x *DiffRequest) GetLeft() []*types.Mount
func (*DiffRequest) GetMediaType ¶ added in v1.7.0
func (x *DiffRequest) GetMediaType() string
func (*DiffRequest) GetRef ¶ added in v1.7.0
func (x *DiffRequest) GetRef() string
func (*DiffRequest) GetRight ¶ added in v1.7.0
func (x *DiffRequest) GetRight() []*types.Mount
func (*DiffRequest) GetSourceDateEpoch ¶ added in v1.7.0
func (x *DiffRequest) GetSourceDateEpoch() *timestamppb.Timestamp
func (*DiffRequest) ProtoMessage ¶
func (*DiffRequest) ProtoMessage()
func (*DiffRequest) ProtoReflect ¶ added in v1.7.0
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 ¶ added in v1.7.0
func (x *DiffResponse) GetDiff() *types.Descriptor
func (*DiffResponse) ProtoMessage ¶
func (*DiffResponse) ProtoMessage()
func (*DiffResponse) ProtoReflect ¶ added in v1.7.0
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 UnimplementedDiffServer ¶ added in v1.4.0
type UnimplementedDiffServer struct { }
UnimplementedDiffServer must be embedded to have forward compatible implementations.
func (UnimplementedDiffServer) Apply ¶ added in v1.4.0
func (UnimplementedDiffServer) Apply(context.Context, *ApplyRequest) (*ApplyResponse, error)
func (UnimplementedDiffServer) Diff ¶ added in v1.4.0
func (UnimplementedDiffServer) Diff(context.Context, *DiffRequest) (*DiffResponse, error)
type UnsafeDiffServer ¶ added in v1.7.0
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.