Bump vendor containerd/containerd version
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
This commit is contained in:
parent
83a9d2460c
commit
73cd077c6b
@ -44,7 +44,7 @@ github.com/containerd/ttrpc 92c8520ef9f86600c650dd540266a007bf03670f
|
|||||||
github.com/containerd/go-runc a5c2862aed5e6358b305b0e16bfce58e0549b1cd
|
github.com/containerd/go-runc a5c2862aed5e6358b305b0e16bfce58e0549b1cd
|
||||||
github.com/containerd/fifo bda0ff6ed73c67bfb5e62bc9c697f146b7fd7f13
|
github.com/containerd/fifo bda0ff6ed73c67bfb5e62bc9c697f146b7fd7f13
|
||||||
github.com/containerd/continuity f2a389ac0a02ce21c09edd7344677a601970f41c
|
github.com/containerd/continuity f2a389ac0a02ce21c09edd7344677a601970f41c
|
||||||
github.com/containerd/containerd 1fb1d93212af763bd481b476293040b1566ae00b
|
github.com/containerd/containerd 0a1f2b40642e54ed06cd0a22cdf6025cbe70853c
|
||||||
github.com/containerd/console 8375c3424e4d7b114e8a90a4a40c8e1b40d1d4e6
|
github.com/containerd/console 8375c3424e4d7b114e8a90a4a40c8e1b40d1d4e6
|
||||||
github.com/containerd/cgroups fada802a7909d430bd17126fd6e4bbf5716f2bcd
|
github.com/containerd/cgroups fada802a7909d430bd17126fd6e4bbf5716f2bcd
|
||||||
github.com/beorn7/perks 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9
|
github.com/beorn7/perks 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9
|
||||||
|
345
vendor/github.com/containerd/containerd/api/services/snapshots/v1/snapshots.pb.go
generated
vendored
345
vendor/github.com/containerd/containerd/api/services/snapshots/v1/snapshots.pb.go
generated
vendored
@ -777,6 +777,45 @@ func (m *UsageResponse) XXX_DiscardUnknown() {
|
|||||||
|
|
||||||
var xxx_messageInfo_UsageResponse proto.InternalMessageInfo
|
var xxx_messageInfo_UsageResponse proto.InternalMessageInfo
|
||||||
|
|
||||||
|
type CleanupRequest struct {
|
||||||
|
Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *CleanupRequest) Reset() { *m = CleanupRequest{} }
|
||||||
|
func (*CleanupRequest) ProtoMessage() {}
|
||||||
|
func (*CleanupRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_cfc0ddf12791f168, []int{17}
|
||||||
|
}
|
||||||
|
func (m *CleanupRequest) XXX_Unmarshal(b []byte) error {
|
||||||
|
return m.Unmarshal(b)
|
||||||
|
}
|
||||||
|
func (m *CleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
if deterministic {
|
||||||
|
return xxx_messageInfo_CleanupRequest.Marshal(b, m, deterministic)
|
||||||
|
} else {
|
||||||
|
b = b[:cap(b)]
|
||||||
|
n, err := m.MarshalTo(b)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return b[:n], nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func (m *CleanupRequest) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_CleanupRequest.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *CleanupRequest) XXX_Size() int {
|
||||||
|
return m.Size()
|
||||||
|
}
|
||||||
|
func (m *CleanupRequest) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_CleanupRequest.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_CleanupRequest proto.InternalMessageInfo
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterEnum("containerd.services.snapshots.v1.Kind", Kind_name, Kind_value)
|
proto.RegisterEnum("containerd.services.snapshots.v1.Kind", Kind_name, Kind_value)
|
||||||
proto.RegisterType((*PrepareSnapshotRequest)(nil), "containerd.services.snapshots.v1.PrepareSnapshotRequest")
|
proto.RegisterType((*PrepareSnapshotRequest)(nil), "containerd.services.snapshots.v1.PrepareSnapshotRequest")
|
||||||
@ -800,6 +839,7 @@ func init() {
|
|||||||
proto.RegisterType((*ListSnapshotsResponse)(nil), "containerd.services.snapshots.v1.ListSnapshotsResponse")
|
proto.RegisterType((*ListSnapshotsResponse)(nil), "containerd.services.snapshots.v1.ListSnapshotsResponse")
|
||||||
proto.RegisterType((*UsageRequest)(nil), "containerd.services.snapshots.v1.UsageRequest")
|
proto.RegisterType((*UsageRequest)(nil), "containerd.services.snapshots.v1.UsageRequest")
|
||||||
proto.RegisterType((*UsageResponse)(nil), "containerd.services.snapshots.v1.UsageResponse")
|
proto.RegisterType((*UsageResponse)(nil), "containerd.services.snapshots.v1.UsageResponse")
|
||||||
|
proto.RegisterType((*CleanupRequest)(nil), "containerd.services.snapshots.v1.CleanupRequest")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -807,71 +847,73 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var fileDescriptor_cfc0ddf12791f168 = []byte{
|
var fileDescriptor_cfc0ddf12791f168 = []byte{
|
||||||
// 1022 bytes of a gzipped FileDescriptorProto
|
// 1047 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1a, 0x47,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1b, 0x45,
|
||||||
0x14, 0x67, 0x61, 0x8d, 0xc3, 0xc3, 0x76, 0xe9, 0x04, 0x13, 0xb4, 0xad, 0xf0, 0x8a, 0x43, 0x65,
|
0x14, 0xf7, 0xda, 0x5b, 0x27, 0x79, 0x4e, 0x82, 0x99, 0x3a, 0xae, 0xb5, 0x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, 0xd0,
|
0xf2, 0x52, 0x5c, 0x55, 0x96, 0x5f, 0xfd, 0x98, 0x8d, 0xfc, 0xf2, 0x53, 0x96, 0x23, 0xc8, 0xff,
|
||||||
0x46, 0xd8, 0x87, 0x8f, 0xf2, 0x30, 0x84, 0xa5, 0x10, 0xb1, 0x0b, 0x32, 0x8f, 0xf0, 0xe3, 0x50,
|
0xb6, 0x08, 0x4b, 0xbd, 0xba, 0xa0, 0xef, 0x60, 0x41, 0x3c, 0x4c, 0xd0, 0xe6, 0xac, 0x8f, 0x25,
|
||||||
0x8f, 0x05, 0xe5, 0xfe, 0xac, 0x66, 0xc2, 0x6d, 0x13, 0xe2, 0xde, 0x3d, 0x8c, 0xf4, 0xe9, 0x08,
|
0xe5, 0xe1, 0x0c, 0x96, 0x82, 0xf8, 0x36, 0xc8, 0x3c, 0xc3, 0x8f, 0x67, 0x7a, 0x60, 0x28, 0xf7,
|
||||||
0x57, 0xae, 0x7d, 0xe5, 0x6e, 0x70, 0x03, 0xe1, 0xec, 0x18, 0xe2, 0x5e, 0x32, 0xd0, 0x83, 0x90,
|
0xa7, 0x35, 0x13, 0x61, 0x1b, 0x10, 0xf7, 0xef, 0x6e, 0xa4, 0x4f, 0xf6, 0x30, 0xf4, 0x54, 0x50,
|
||||||
0x97, 0x9f, 0x92, 0xb9, 0x56, 0xf3, 0x65, 0xf6, 0x48, 0x67, 0xd0, 0xde, 0x63, 0x20, 0x08, 0xf4,
|
0xee, 0x86, 0x37, 0x10, 0xc1, 0x4e, 0x21, 0xee, 0x17, 0x03, 0x3d, 0x98, 0xf1, 0xc2, 0x54, 0xd2,
|
||||||
0xc4, 0x67, 0xc3, 0xff, 0x42, 0x77, 0x41, 0x66, 0x3d, 0x35, 0x48, 0x66, 0x26, 0x5c, 0xa4, 0x41,
|
0x37, 0x74, 0xa2, 0xc4, 0x1e, 0xf6, 0xcc, 0xb5, 0xff, 0x80, 0x08, 0xe3, 0x7a, 0xec, 0x53, 0xe3,
|
||||||
0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 0xf6, 0x57, 0x57, 0xaf, 0xb3, 0x91, 0xdf, 0x5f, 0x67, 0x23, 0xdf, 0x5f, 0x67, 0xa5, 0xab,
|
||||||
0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x3b, 0x8b, 0xa6, 0xa4, 0xde, 0x0e, 0x00, 0x00,
|
0xeb, 0xac, 0xf4, 0xeb, 0x75, 0x56, 0xfa, 0xeb, 0x3a, 0x2b, 0x3d, 0xdf, 0x99, 0xfd, 0xb7, 0x78,
|
||||||
|
0xab, 0x37, 0x79, 0x16, 0x39, 0x8b, 0xf3, 0x88, 0x1f, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, 0x20,
|
||||||
|
0x9c, 0x85, 0x7f, 0x67, 0x0f, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference imports to suppress errors if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
@ -895,6 +937,7 @@ type SnapshotsClient interface {
|
|||||||
Update(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*UpdateSnapshotResponse, error)
|
Update(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*UpdateSnapshotResponse, error)
|
||||||
List(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (Snapshots_ListClient, error)
|
List(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (Snapshots_ListClient, error)
|
||||||
Usage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error)
|
Usage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error)
|
||||||
|
Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*types1.Empty, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type snapshotsClient struct {
|
type snapshotsClient struct {
|
||||||
@ -1009,6 +1052,15 @@ func (c *snapshotsClient) Usage(ctx context.Context, in *UsageRequest, opts ...g
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *snapshotsClient) Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*types1.Empty, error) {
|
||||||
|
out := new(types1.Empty)
|
||||||
|
err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Cleanup", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
// SnapshotsServer is the server API for Snapshots service.
|
// SnapshotsServer is the server API for Snapshots service.
|
||||||
type SnapshotsServer interface {
|
type SnapshotsServer interface {
|
||||||
Prepare(context.Context, *PrepareSnapshotRequest) (*PrepareSnapshotResponse, error)
|
Prepare(context.Context, *PrepareSnapshotRequest) (*PrepareSnapshotResponse, error)
|
||||||
@ -1020,6 +1072,7 @@ type SnapshotsServer interface {
|
|||||||
Update(context.Context, *UpdateSnapshotRequest) (*UpdateSnapshotResponse, error)
|
Update(context.Context, *UpdateSnapshotRequest) (*UpdateSnapshotResponse, error)
|
||||||
List(*ListSnapshotsRequest, Snapshots_ListServer) error
|
List(*ListSnapshotsRequest, Snapshots_ListServer) error
|
||||||
Usage(context.Context, *UsageRequest) (*UsageResponse, error)
|
Usage(context.Context, *UsageRequest) (*UsageResponse, error)
|
||||||
|
Cleanup(context.Context, *CleanupRequest) (*types1.Empty, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterSnapshotsServer(s *grpc.Server, srv SnapshotsServer) {
|
func RegisterSnapshotsServer(s *grpc.Server, srv SnapshotsServer) {
|
||||||
@ -1191,6 +1244,24 @@ func _Snapshots_Usage_Handler(srv interface{}, ctx context.Context, dec func(int
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func _Snapshots_Cleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(CleanupRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(SnapshotsServer).Cleanup(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/containerd.services.snapshots.v1.Snapshots/Cleanup",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(SnapshotsServer).Cleanup(ctx, req.(*CleanupRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
var _Snapshots_serviceDesc = grpc.ServiceDesc{
|
var _Snapshots_serviceDesc = grpc.ServiceDesc{
|
||||||
ServiceName: "containerd.services.snapshots.v1.Snapshots",
|
ServiceName: "containerd.services.snapshots.v1.Snapshots",
|
||||||
HandlerType: (*SnapshotsServer)(nil),
|
HandlerType: (*SnapshotsServer)(nil),
|
||||||
@ -1227,6 +1298,10 @@ var _Snapshots_serviceDesc = grpc.ServiceDesc{
|
|||||||
MethodName: "Usage",
|
MethodName: "Usage",
|
||||||
Handler: _Snapshots_Usage_Handler,
|
Handler: _Snapshots_Usage_Handler,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Cleanup",
|
||||||
|
Handler: _Snapshots_Cleanup_Handler,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{
|
Streams: []grpc.StreamDesc{
|
||||||
{
|
{
|
||||||
@ -1917,6 +1992,33 @@ func (m *UsageResponse) MarshalTo(dAtA []byte) (int, error) {
|
|||||||
return i, nil
|
return i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *CleanupRequest) Marshal() (dAtA []byte, err error) {
|
||||||
|
size := m.Size()
|
||||||
|
dAtA = make([]byte, size)
|
||||||
|
n, err := m.MarshalTo(dAtA)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return dAtA[:n], nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *CleanupRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||||
|
var i int
|
||||||
|
_ = i
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
if len(m.Snapshotter) > 0 {
|
||||||
|
dAtA[i] = 0xa
|
||||||
|
i++
|
||||||
|
i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
|
||||||
|
i += copy(dAtA[i:], m.Snapshotter)
|
||||||
|
}
|
||||||
|
if m.XXX_unrecognized != nil {
|
||||||
|
i += copy(dAtA[i:], m.XXX_unrecognized)
|
||||||
|
}
|
||||||
|
return i, nil
|
||||||
|
}
|
||||||
|
|
||||||
func encodeVarintSnapshots(dAtA []byte, offset int, v uint64) int {
|
func encodeVarintSnapshots(dAtA []byte, offset int, v uint64) int {
|
||||||
for v >= 1<<7 {
|
for v >= 1<<7 {
|
||||||
dAtA[offset] = uint8(v&0x7f | 0x80)
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
||||||
@ -2299,6 +2401,22 @@ func (m *UsageResponse) Size() (n int) {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *CleanupRequest) Size() (n int) {
|
||||||
|
if m == nil {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
l = len(m.Snapshotter)
|
||||||
|
if l > 0 {
|
||||||
|
n += 1 + l + sovSnapshots(uint64(l))
|
||||||
|
}
|
||||||
|
if m.XXX_unrecognized != nil {
|
||||||
|
n += len(m.XXX_unrecognized)
|
||||||
|
}
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
|
||||||
func sovSnapshots(x uint64) (n int) {
|
func sovSnapshots(x uint64) (n int) {
|
||||||
for {
|
for {
|
||||||
n++
|
n++
|
||||||
@ -2561,6 +2679,17 @@ func (this *UsageResponse) String() string {
|
|||||||
}, "")
|
}, "")
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
func (this *CleanupRequest) String() string {
|
||||||
|
if this == nil {
|
||||||
|
return "nil"
|
||||||
|
}
|
||||||
|
s := strings.Join([]string{`&CleanupRequest{`,
|
||||||
|
`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
|
||||||
|
`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
||||||
|
`}`,
|
||||||
|
}, "")
|
||||||
|
return s
|
||||||
|
}
|
||||||
func valueToStringSnapshots(v interface{}) string {
|
func valueToStringSnapshots(v interface{}) string {
|
||||||
rv := reflect.ValueOf(v)
|
rv := reflect.ValueOf(v)
|
||||||
if rv.IsNil() {
|
if rv.IsNil() {
|
||||||
@ -5093,6 +5222,92 @@ func (m *UsageResponse) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
func (m *CleanupRequest) Unmarshal(dAtA []byte) error {
|
||||||
|
l := len(dAtA)
|
||||||
|
iNdEx := 0
|
||||||
|
for iNdEx < l {
|
||||||
|
preIndex := iNdEx
|
||||||
|
var wire uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowSnapshots
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
wire |= uint64(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldNum := int32(wire >> 3)
|
||||||
|
wireType := int(wire & 0x7)
|
||||||
|
if wireType == 4 {
|
||||||
|
return fmt.Errorf("proto: CleanupRequest: wiretype end group for non-group")
|
||||||
|
}
|
||||||
|
if fieldNum <= 0 {
|
||||||
|
return fmt.Errorf("proto: CleanupRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
|
}
|
||||||
|
switch fieldNum {
|
||||||
|
case 1:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
|
||||||
|
}
|
||||||
|
var stringLen uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowSnapshots
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
stringLen |= uint64(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
intStringLen := int(stringLen)
|
||||||
|
if intStringLen < 0 {
|
||||||
|
return ErrInvalidLengthSnapshots
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + intStringLen
|
||||||
|
if postIndex < 0 {
|
||||||
|
return ErrInvalidLengthSnapshots
|
||||||
|
}
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.Snapshotter = string(dAtA[iNdEx:postIndex])
|
||||||
|
iNdEx = postIndex
|
||||||
|
default:
|
||||||
|
iNdEx = preIndex
|
||||||
|
skippy, err := skipSnapshots(dAtA[iNdEx:])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthSnapshots
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
|
return ErrInvalidLengthSnapshots
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
||||||
|
iNdEx += skippy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if iNdEx > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
func skipSnapshots(dAtA []byte) (n int, err error) {
|
func skipSnapshots(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
|
5
vendor/github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto
generated
vendored
5
vendor/github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto
generated
vendored
@ -21,6 +21,7 @@ service Snapshots {
|
|||||||
rpc Update(UpdateSnapshotRequest) returns (UpdateSnapshotResponse);
|
rpc Update(UpdateSnapshotRequest) returns (UpdateSnapshotResponse);
|
||||||
rpc List(ListSnapshotsRequest) returns (stream ListSnapshotsResponse);
|
rpc List(ListSnapshotsRequest) returns (stream ListSnapshotsResponse);
|
||||||
rpc Usage(UsageRequest) returns (UsageResponse);
|
rpc Usage(UsageRequest) returns (UsageResponse);
|
||||||
|
rpc Cleanup(CleanupRequest) returns (google.protobuf.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
message PrepareSnapshotRequest {
|
message PrepareSnapshotRequest {
|
||||||
@ -160,3 +161,7 @@ message UsageResponse {
|
|||||||
int64 size = 1;
|
int64 size = 1;
|
||||||
int64 inodes = 2;
|
int64 inodes = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message CleanupRequest {
|
||||||
|
string snapshotter = 1;
|
||||||
|
}
|
||||||
|
5
vendor/github.com/containerd/containerd/archive/tar_unix.go
generated
vendored
5
vendor/github.com/containerd/containerd/archive/tar_unix.go
generated
vendored
@ -176,7 +176,10 @@ func copyDirInfo(fi os.FileInfo, path string) error {
|
|||||||
return errors.Wrapf(err, "failed to chmod %s", path)
|
return errors.Wrapf(err, "failed to chmod %s", path)
|
||||||
}
|
}
|
||||||
|
|
||||||
timespec := []unix.Timespec{unix.Timespec(fs.StatAtime(st)), unix.Timespec(fs.StatMtime(st))}
|
timespec := []unix.Timespec{
|
||||||
|
unix.NsecToTimespec(syscall.TimespecToNsec(fs.StatAtime(st))),
|
||||||
|
unix.NsecToTimespec(syscall.TimespecToNsec(fs.StatMtime(st))),
|
||||||
|
}
|
||||||
if err := unix.UtimesNanoAt(unix.AT_FDCWD, path, timespec, unix.AT_SYMLINK_NOFOLLOW); err != nil {
|
if err := unix.UtimesNanoAt(unix.AT_FDCWD, path, timespec, unix.AT_SYMLINK_NOFOLLOW); err != nil {
|
||||||
return errors.Wrapf(err, "failed to utime %s", path)
|
return errors.Wrapf(err, "failed to utime %s", path)
|
||||||
}
|
}
|
||||||
|
6
vendor/github.com/containerd/containerd/filters/parser.go
generated
vendored
6
vendor/github.com/containerd/containerd/filters/parser.go
generated
vendored
@ -209,6 +209,8 @@ func (p *parser) field() (string, error) {
|
|||||||
return s, nil
|
return s, nil
|
||||||
case tokenQuoted:
|
case tokenQuoted:
|
||||||
return p.unquote(pos, s, false)
|
return p.unquote(pos, s, false)
|
||||||
|
case tokenIllegal:
|
||||||
|
return "", p.mkerr(pos, p.scanner.err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return "", p.mkerr(pos, "expected field or quoted")
|
return "", p.mkerr(pos, "expected field or quoted")
|
||||||
@ -228,6 +230,8 @@ func (p *parser) operator() (operator, error) {
|
|||||||
default:
|
default:
|
||||||
return 0, p.mkerr(pos, "unsupported operator %q", s)
|
return 0, p.mkerr(pos, "unsupported operator %q", s)
|
||||||
}
|
}
|
||||||
|
case tokenIllegal:
|
||||||
|
return 0, p.mkerr(pos, p.scanner.err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0, p.mkerr(pos, `expected an operator ("=="|"!="|"~=")`)
|
return 0, p.mkerr(pos, `expected an operator ("=="|"!="|"~=")`)
|
||||||
@ -241,6 +245,8 @@ func (p *parser) value(allowAltQuotes bool) (string, error) {
|
|||||||
return s, nil
|
return s, nil
|
||||||
case tokenQuoted:
|
case tokenQuoted:
|
||||||
return p.unquote(pos, s, allowAltQuotes)
|
return p.unquote(pos, s, allowAltQuotes)
|
||||||
|
case tokenIllegal:
|
||||||
|
return "", p.mkerr(pos, p.scanner.err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return "", p.mkerr(pos, "expected value or quoted")
|
return "", p.mkerr(pos, "expected value or quoted")
|
||||||
|
50
vendor/github.com/containerd/containerd/filters/scanner.go
generated
vendored
50
vendor/github.com/containerd/containerd/filters/scanner.go
generated
vendored
@ -17,7 +17,6 @@
|
|||||||
package filters
|
package filters
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"unicode"
|
"unicode"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
)
|
)
|
||||||
@ -64,6 +63,7 @@ type scanner struct {
|
|||||||
pos int
|
pos int
|
||||||
ppos int // bounds the current rune in the string
|
ppos int // bounds the current rune in the string
|
||||||
value bool
|
value bool
|
||||||
|
err string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *scanner) init(input string) {
|
func (s *scanner) init(input string) {
|
||||||
@ -82,12 +82,14 @@ func (s *scanner) next() rune {
|
|||||||
s.ppos += w
|
s.ppos += w
|
||||||
if r == utf8.RuneError {
|
if r == utf8.RuneError {
|
||||||
if w > 0 {
|
if w > 0 {
|
||||||
|
s.error("rune error")
|
||||||
return tokenIllegal
|
return tokenIllegal
|
||||||
}
|
}
|
||||||
return tokenEOF
|
return tokenEOF
|
||||||
}
|
}
|
||||||
|
|
||||||
if r == 0 {
|
if r == 0 {
|
||||||
|
s.error("unexpected null")
|
||||||
return tokenIllegal
|
return tokenIllegal
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +116,9 @@ chomp:
|
|||||||
case ch == tokenEOF:
|
case ch == tokenEOF:
|
||||||
case ch == tokenIllegal:
|
case ch == tokenIllegal:
|
||||||
case isQuoteRune(ch):
|
case isQuoteRune(ch):
|
||||||
s.scanQuoted(ch)
|
if !s.scanQuoted(ch) {
|
||||||
|
return pos, tokenIllegal, s.input[pos:s.ppos]
|
||||||
|
}
|
||||||
return pos, tokenQuoted, s.input[pos:s.ppos]
|
return pos, tokenQuoted, s.input[pos:s.ppos]
|
||||||
case isSeparatorRune(ch):
|
case isSeparatorRune(ch):
|
||||||
s.value = false
|
s.value = false
|
||||||
@ -172,54 +176,64 @@ func (s *scanner) scanValue() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *scanner) scanQuoted(quote rune) {
|
func (s *scanner) scanQuoted(quote rune) bool {
|
||||||
|
var illegal bool
|
||||||
ch := s.next() // read character after quote
|
ch := s.next() // read character after quote
|
||||||
for ch != quote {
|
for ch != quote {
|
||||||
if ch == '\n' || ch < 0 {
|
if ch == '\n' || ch < 0 {
|
||||||
s.error("literal not terminated")
|
s.error("quoted literal not terminated")
|
||||||
return
|
return false
|
||||||
}
|
}
|
||||||
if ch == '\\' {
|
if ch == '\\' {
|
||||||
ch = s.scanEscape(quote)
|
var legal bool
|
||||||
|
ch, legal = s.scanEscape(quote)
|
||||||
|
if !legal {
|
||||||
|
illegal = true
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ch = s.next()
|
ch = s.next()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return !illegal
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *scanner) scanEscape(quote rune) rune {
|
func (s *scanner) scanEscape(quote rune) (ch rune, legal bool) {
|
||||||
ch := s.next() // read character after '/'
|
ch = s.next() // read character after '/'
|
||||||
switch ch {
|
switch ch {
|
||||||
case 'a', 'b', 'f', 'n', 'r', 't', 'v', '\\', quote:
|
case 'a', 'b', 'f', 'n', 'r', 't', 'v', '\\', quote:
|
||||||
// nothing to do
|
// nothing to do
|
||||||
ch = s.next()
|
ch = s.next()
|
||||||
|
legal = true
|
||||||
case '0', '1', '2', '3', '4', '5', '6', '7':
|
case '0', '1', '2', '3', '4', '5', '6', '7':
|
||||||
ch = s.scanDigits(ch, 8, 3)
|
ch, legal = s.scanDigits(ch, 8, 3)
|
||||||
case 'x':
|
case 'x':
|
||||||
ch = s.scanDigits(s.next(), 16, 2)
|
ch, legal = s.scanDigits(s.next(), 16, 2)
|
||||||
case 'u':
|
case 'u':
|
||||||
ch = s.scanDigits(s.next(), 16, 4)
|
ch, legal = s.scanDigits(s.next(), 16, 4)
|
||||||
case 'U':
|
case 'U':
|
||||||
ch = s.scanDigits(s.next(), 16, 8)
|
ch, legal = s.scanDigits(s.next(), 16, 8)
|
||||||
default:
|
default:
|
||||||
s.error("illegal char escape")
|
s.error("illegal escape sequence")
|
||||||
}
|
}
|
||||||
return ch
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *scanner) scanDigits(ch rune, base, n int) rune {
|
func (s *scanner) scanDigits(ch rune, base, n int) (rune, bool) {
|
||||||
for n > 0 && digitVal(ch) < base {
|
for n > 0 && digitVal(ch) < base {
|
||||||
ch = s.next()
|
ch = s.next()
|
||||||
n--
|
n--
|
||||||
}
|
}
|
||||||
if n > 0 {
|
if n > 0 {
|
||||||
s.error("illegal char escape")
|
s.error("illegal numeric escape sequence")
|
||||||
|
return ch, false
|
||||||
}
|
}
|
||||||
return ch
|
return ch, true
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *scanner) error(msg string) {
|
func (s *scanner) error(msg string) {
|
||||||
fmt.Println("error fixme", msg)
|
if s.err == "" {
|
||||||
|
s.err = msg
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func digitVal(ch rune) int {
|
func digitVal(ch rune) int {
|
||||||
|
2
vendor/github.com/containerd/containerd/gc/gc.go
generated
vendored
2
vendor/github.com/containerd/containerd/gc/gc.go
generated
vendored
@ -172,7 +172,7 @@ func ConcurrentMark(ctx context.Context, root <-chan Node, refs func(context.Con
|
|||||||
return seen, nil
|
return seen, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sweep removes all nodes returned through the channel which are not in
|
// Sweep removes all nodes returned through the slice which are not in
|
||||||
// the reachable set by calling the provided remove function.
|
// the reachable set by calling the provided remove function.
|
||||||
func Sweep(reachable map[Node]struct{}, all []Node, remove func(Node) error) error {
|
func Sweep(reachable map[Node]struct{}, all []Node, remove func(Node) error) error {
|
||||||
// All black objects are now reachable, and all white objects are
|
// All black objects are now reachable, and all white objects are
|
||||||
|
9
vendor/github.com/containerd/containerd/metadata/snapshot.go
generated
vendored
9
vendor/github.com/containerd/containerd/metadata/snapshot.go
generated
vendored
@ -791,18 +791,17 @@ func validateSnapshot(info *snapshots.Info) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type cleaner interface {
|
|
||||||
Cleanup(ctx context.Context) error
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *snapshotter) garbageCollect(ctx context.Context) (d time.Duration, err error) {
|
func (s *snapshotter) garbageCollect(ctx context.Context) (d time.Duration, err error) {
|
||||||
s.l.Lock()
|
s.l.Lock()
|
||||||
t1 := time.Now()
|
t1 := time.Now()
|
||||||
defer func() {
|
defer func() {
|
||||||
s.l.Unlock()
|
s.l.Unlock()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if c, ok := s.Snapshotter.(cleaner); ok {
|
if c, ok := s.Snapshotter.(snapshots.Cleaner); ok {
|
||||||
err = c.Cleanup(ctx)
|
err = c.Cleanup(ctx)
|
||||||
|
if errdefs.IsNotImplemented(err) {
|
||||||
|
err = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
57
vendor/github.com/containerd/containerd/mount/mount_linux.go
generated
vendored
57
vendor/github.com/containerd/containerd/mount/mount_linux.go
generated
vendored
@ -19,6 +19,7 @@ package mount
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"os/exec"
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@ -28,14 +29,27 @@ import (
|
|||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
var pagesize = 4096
|
var (
|
||||||
|
pagesize = 4096
|
||||||
|
allowedHelperBinaries = []string{"mount.fuse", "mount.fuse3"}
|
||||||
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
pagesize = os.Getpagesize()
|
pagesize = os.Getpagesize()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mount to the provided target path
|
// Mount to the provided target path.
|
||||||
|
//
|
||||||
|
// If m.Type starts with "fuse." or "fuse3.", "mount.fuse" or "mount.fuse3"
|
||||||
|
// helper binary is called.
|
||||||
func (m *Mount) Mount(target string) error {
|
func (m *Mount) Mount(target string) error {
|
||||||
|
for _, helperBinary := range allowedHelperBinaries {
|
||||||
|
// helperBinary = "mount.fuse", typePrefix = "fuse."
|
||||||
|
typePrefix := strings.TrimPrefix(helperBinary, "mount.") + "."
|
||||||
|
if strings.HasPrefix(m.Type, typePrefix) {
|
||||||
|
return m.mountWithHelper(helperBinary, typePrefix, target)
|
||||||
|
}
|
||||||
|
}
|
||||||
var (
|
var (
|
||||||
chdir string
|
chdir string
|
||||||
options = m.Options
|
options = m.Options
|
||||||
@ -92,7 +106,28 @@ func Unmount(target string, flags int) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func isFUSE(dir string) (bool, error) {
|
||||||
|
// fuseSuperMagic is defined in statfs(2)
|
||||||
|
const fuseSuperMagic = 0x65735546
|
||||||
|
var st unix.Statfs_t
|
||||||
|
if err := unix.Statfs(dir, &st); err != nil {
|
||||||
|
return false, err
|
||||||
|
}
|
||||||
|
return st.Type == fuseSuperMagic, nil
|
||||||
|
}
|
||||||
|
|
||||||
func unmount(target string, flags int) error {
|
func unmount(target string, flags int) error {
|
||||||
|
// For FUSE mounts, attempting to execute fusermount helper binary is preferred
|
||||||
|
// https://github.com/containerd/containerd/pull/3765#discussion_r342083514
|
||||||
|
if ok, err := isFUSE(target); err == nil && ok {
|
||||||
|
for _, helperBinary := range []string{"fusermount3", "fusermount"} {
|
||||||
|
cmd := exec.Command(helperBinary, "-u", target)
|
||||||
|
if err := cmd.Run(); err == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
// ignore error and try unix.Unmount
|
||||||
|
}
|
||||||
|
}
|
||||||
for i := 0; i < 50; i++ {
|
for i := 0; i < 50; i++ {
|
||||||
if err := unix.Unmount(target, flags); err != nil {
|
if err := unix.Unmount(target, flags); err != nil {
|
||||||
switch err {
|
switch err {
|
||||||
@ -317,3 +352,21 @@ func mountAt(chdir string, source, target, fstype string, flags uintptr, data st
|
|||||||
}
|
}
|
||||||
return errors.Wrap(sys.FMountat(f.Fd(), source, target, fstype, flags, data), "failed to mountat")
|
return errors.Wrap(sys.FMountat(f.Fd(), source, target, fstype, flags, data), "failed to mountat")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *Mount) mountWithHelper(helperBinary, typePrefix, target string) error {
|
||||||
|
// helperBinary: "mount.fuse3"
|
||||||
|
// target: "/foo/merged"
|
||||||
|
// m.Type: "fuse3.fuse-overlayfs"
|
||||||
|
// command: "mount.fuse3 overlay /foo/merged -o lowerdir=/foo/lower2:/foo/lower1,upperdir=/foo/upper,workdir=/foo/work -t fuse-overlayfs"
|
||||||
|
args := []string{m.Source, target}
|
||||||
|
for _, o := range m.Options {
|
||||||
|
args = append(args, "-o", o)
|
||||||
|
}
|
||||||
|
args = append(args, "-t", strings.TrimPrefix(m.Type, typePrefix))
|
||||||
|
cmd := exec.Command(helperBinary, args...)
|
||||||
|
out, err := cmd.CombinedOutput()
|
||||||
|
if err != nil {
|
||||||
|
return errors.Wrapf(err, "mount helper [%s %v] failed: %q", helperBinary, args, string(out))
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
5
vendor/github.com/containerd/containerd/platforms/platforms.go
generated
vendored
5
vendor/github.com/containerd/containerd/platforms/platforms.go
generated
vendored
@ -189,9 +189,8 @@ func Parse(specifier string) (specs.Platform, error) {
|
|||||||
if isKnownOS(p.OS) {
|
if isKnownOS(p.OS) {
|
||||||
// picks a default architecture
|
// picks a default architecture
|
||||||
p.Architecture = runtime.GOARCH
|
p.Architecture = runtime.GOARCH
|
||||||
if p.Architecture == "arm" {
|
if p.Architecture == "arm" && cpuVariant != "v7" {
|
||||||
// TODO(stevvooe): Resolve arm variant, if not v6 (default)
|
p.Variant = cpuVariant
|
||||||
return specs.Platform{}, errors.Wrapf(errdefs.ErrNotImplemented, "arm support not fully implemented")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return p, nil
|
return p, nil
|
||||||
|
2
vendor/github.com/containerd/containerd/plugin/plugin_go18.go
generated
vendored
2
vendor/github.com/containerd/containerd/plugin/plugin_go18.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// +build go1.8,!windows,amd64,!static_build
|
// +build go1.8,!windows,amd64,!static_build,!gccgo
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright The containerd Authors.
|
Copyright The containerd Authors.
|
||||||
|
2
vendor/github.com/containerd/containerd/plugin/plugin_other.go
generated
vendored
2
vendor/github.com/containerd/containerd/plugin/plugin_other.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// +build !go1.8 windows !amd64 static_build
|
// +build !go1.8 windows !amd64 static_build gccgo
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright The containerd Authors.
|
Copyright The containerd Authors.
|
||||||
|
@ -115,7 +115,7 @@ func (s *service) List(req *api.ListContentRequest, session api.Content_ListServ
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}, req.Filters...); err != nil {
|
}, req.Filters...); err != nil {
|
||||||
return err
|
return errdefs.ToGRPC(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(buffer) > 0 {
|
if len(buffer) > 0 {
|
||||||
|
19
vendor/github.com/containerd/containerd/services/snapshots/service.go
generated
vendored
19
vendor/github.com/containerd/containerd/services/snapshots/service.go
generated
vendored
@ -255,6 +255,25 @@ func (s *service) Usage(ctx context.Context, ur *snapshotsapi.UsageRequest) (*sn
|
|||||||
return fromUsage(usage), nil
|
return fromUsage(usage), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *service) Cleanup(ctx context.Context, cr *snapshotsapi.CleanupRequest) (*ptypes.Empty, error) {
|
||||||
|
sn, err := s.getSnapshotter(cr.Snapshotter)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
c, ok := sn.(snapshots.Cleaner)
|
||||||
|
if !ok {
|
||||||
|
return nil, errdefs.ToGRPCf(errdefs.ErrNotImplemented, "snapshotter does not implement Cleanup method")
|
||||||
|
}
|
||||||
|
|
||||||
|
err = c.Cleanup(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return nil, errdefs.ToGRPC(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
return empty, nil
|
||||||
|
}
|
||||||
|
|
||||||
func fromKind(kind snapshots.Kind) snapshotsapi.Kind {
|
func fromKind(kind snapshots.Kind) snapshotsapi.Kind {
|
||||||
if kind == snapshots.KindActive {
|
if kind == snapshots.KindActive {
|
||||||
return snapshotsapi.KindActive
|
return snapshotsapi.KindActive
|
||||||
|
7
vendor/github.com/containerd/containerd/snapshots/proxy/proxy.go
generated
vendored
7
vendor/github.com/containerd/containerd/snapshots/proxy/proxy.go
generated
vendored
@ -184,6 +184,13 @@ func (p *proxySnapshotter) Close() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *proxySnapshotter) Cleanup(ctx context.Context) error {
|
||||||
|
_, err := p.client.Cleanup(ctx, &snapshotsapi.CleanupRequest{
|
||||||
|
Snapshotter: p.snapshotterName,
|
||||||
|
})
|
||||||
|
return errdefs.FromGRPC(err)
|
||||||
|
}
|
||||||
|
|
||||||
func toKind(kind snapshotsapi.Kind) snapshots.Kind {
|
func toKind(kind snapshotsapi.Kind) snapshots.Kind {
|
||||||
if kind == snapshotsapi.KindActive {
|
if kind == snapshotsapi.KindActive {
|
||||||
return snapshots.KindActive
|
return snapshots.KindActive
|
||||||
|
11
vendor/github.com/containerd/containerd/snapshots/snapshotter.go
generated
vendored
11
vendor/github.com/containerd/containerd/snapshots/snapshotter.go
generated
vendored
@ -341,6 +341,17 @@ type Snapshotter interface {
|
|||||||
Close() error
|
Close() error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cleaner defines a type capable of performing asynchronous resource cleanup.
|
||||||
|
// The Cleaner interface should be used by snapshotters which implement fast
|
||||||
|
// removal and deferred resource cleanup. This prevents snapshots from needing
|
||||||
|
// to perform lengthy resource cleanup before acknowledging a snapshot key
|
||||||
|
// has been removed and available for re-use. This is also useful when
|
||||||
|
// performing multi-key removal with the intent of cleaning up all the
|
||||||
|
// resources after each snapshot key has been removed.
|
||||||
|
type Cleaner interface {
|
||||||
|
Cleanup(ctx context.Context) error
|
||||||
|
}
|
||||||
|
|
||||||
// Opt allows setting mutable snapshot properties on creation
|
// Opt allows setting mutable snapshot properties on creation
|
||||||
type Opt func(info *Info) error
|
type Opt func(info *Info) error
|
||||||
|
|
||||||
|
2
vendor/github.com/containerd/containerd/unpacker.go
generated
vendored
2
vendor/github.com/containerd/containerd/unpacker.go
generated
vendored
@ -191,7 +191,7 @@ EachLayer:
|
|||||||
case <-fetchC[i-fetchOffset]:
|
case <-fetchC[i-fetchOffset]:
|
||||||
}
|
}
|
||||||
|
|
||||||
diff, err := a.Apply(ctx, desc, mounts)
|
diff, err := a.Apply(ctx, desc, mounts, u.config.ApplyOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
abort()
|
abort()
|
||||||
return errors.Wrapf(err, "failed to extract layer %s", diffIDs[i])
|
return errors.Wrapf(err, "failed to extract layer %s", diffIDs[i])
|
||||||
|
2
vendor/github.com/containerd/containerd/vendor.conf
generated
vendored
2
vendor/github.com/containerd/containerd/vendor.conf
generated
vendored
@ -3,7 +3,7 @@ github.com/BurntSushi/toml 3012a1dbe2e4bd1391d42b32f057
|
|||||||
github.com/containerd/btrfs af5082808c833de0e79c1e72eea9fea239364877
|
github.com/containerd/btrfs af5082808c833de0e79c1e72eea9fea239364877
|
||||||
github.com/containerd/cgroups fada802a7909d430bd17126fd6e4bbf5716f2bcd
|
github.com/containerd/cgroups fada802a7909d430bd17126fd6e4bbf5716f2bcd
|
||||||
github.com/containerd/console 8375c3424e4d7b114e8a90a4a40c8e1b40d1d4e6
|
github.com/containerd/console 8375c3424e4d7b114e8a90a4a40c8e1b40d1d4e6
|
||||||
github.com/containerd/continuity f2a389ac0a02ce21c09edd7344677a601970f41c
|
github.com/containerd/continuity 0ec596719c75bfd42908850990acea594b7593ac
|
||||||
github.com/containerd/fifo bda0ff6ed73c67bfb5e62bc9c697f146b7fd7f13
|
github.com/containerd/fifo bda0ff6ed73c67bfb5e62bc9c697f146b7fd7f13
|
||||||
github.com/containerd/go-runc a5c2862aed5e6358b305b0e16bfce58e0549b1cd
|
github.com/containerd/go-runc a5c2862aed5e6358b305b0e16bfce58e0549b1cd
|
||||||
github.com/containerd/ttrpc 92c8520ef9f86600c650dd540266a007bf03670f
|
github.com/containerd/ttrpc 92c8520ef9f86600c650dd540266a007bf03670f
|
||||||
|
Loading…
Reference in New Issue
Block a user