package diff
import "github.com/containerd/containerd/api/services/diff/v1"
Index ¶
- Variables
- func RegisterDiffServer(s grpc.ServiceRegistrar, srv DiffServer)
- type ApplyRequest
- func (*ApplyRequest) Descriptor() ([]byte, []int)
- func (x *ApplyRequest) GetDiff() *types.Descriptor
- func (x *ApplyRequest) GetMounts() []*types.Mount
- func (x *ApplyRequest) GetPayloads() map[string]*anypb.Any
- func (*ApplyRequest) ProtoMessage()
- func (x *ApplyRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyRequest) Reset()
- func (x *ApplyRequest) String() string
- type ApplyResponse
- func (*ApplyResponse) Descriptor() ([]byte, []int)
- 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
- type DiffRequest
- func (*DiffRequest) Descriptor() ([]byte, []int)
- 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
- func (*DiffResponse) Descriptor() ([]byte, []int)
- 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
- type UnimplementedDiffServer
- func (UnimplementedDiffServer) Apply(context.Context, *ApplyRequest) (*ApplyResponse, error)
- func (UnimplementedDiffServer) Diff(context.Context, *DiffRequest) (*DiffResponse, error)
- type UnsafeDiffServer
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 `protobuf:"bytes,3,rep,name=payloads,proto3" json:"payloads,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*ApplyRequest) Descriptor ¶
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) 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 ¶
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 `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 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 ¶
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 ¶
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 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.
Source Files ¶
diff.pb.go diff_grpc.pb.go doc.go
- Version
- v1.7.1
- Published
- May 10, 2023
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 1 hour ago –
Tools for package owners.