snapshots

package
v1.1.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package snapshots is a generated protocol buffer package.

It is generated from these files:

github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto

It has these top-level messages:

PrepareSnapshotRequest
PrepareSnapshotResponse
ViewSnapshotRequest
ViewSnapshotResponse
MountsRequest
MountsResponse
RemoveSnapshotRequest
CommitSnapshotRequest
StatSnapshotRequest
Info
StatSnapshotResponse
UpdateSnapshotRequest
UpdateSnapshotResponse
ListSnapshotsRequest
ListSnapshotsResponse
UsageRequest
UsageResponse

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSnapshots = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSnapshots   = fmt.Errorf("proto: integer overflow")
)
View Source
var Kind_name = map[int32]string{
	0: "UNKNOWN",
	1: "VIEW",
	2: "ACTIVE",
	3: "COMMITTED",
}
View Source
var Kind_value = map[string]int32{
	"UNKNOWN":   0,
	"VIEW":      1,
	"ACTIVE":    2,
	"COMMITTED": 3,
}

Functions

func RegisterSnapshotsServer

func RegisterSnapshotsServer(s *grpc.Server, srv SnapshotsServer)

Types

type CommitSnapshotRequest

type CommitSnapshotRequest struct {
	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Key         string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// Labels are arbitrary data on snapshots.
	//
	// The combined size of a key/value pair cannot exceed 4096 bytes.
	Labels map[string]string `` /* 146-byte string literal not displayed */
}

func (*CommitSnapshotRequest) Descriptor

func (*CommitSnapshotRequest) Descriptor() ([]byte, []int)

func (*CommitSnapshotRequest) Marshal

func (m *CommitSnapshotRequest) Marshal() (dAtA []byte, err error)

func (*CommitSnapshotRequest) MarshalTo

func (m *CommitSnapshotRequest) MarshalTo(dAtA []byte) (int, error)

func (*CommitSnapshotRequest) ProtoMessage

func (*CommitSnapshotRequest) ProtoMessage()

func (*CommitSnapshotRequest) Reset

func (m *CommitSnapshotRequest) Reset()

func (*CommitSnapshotRequest) Size

func (m *CommitSnapshotRequest) Size() (n int)

func (*CommitSnapshotRequest) String

func (this *CommitSnapshotRequest) String() string

func (*CommitSnapshotRequest) Unmarshal

func (m *CommitSnapshotRequest) Unmarshal(dAtA []byte) error

type Info

type Info struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
	Kind   Kind   `protobuf:"varint,3,opt,name=kind,proto3,enum=containerd.services.snapshots.v1.Kind" json:"kind,omitempty"`
	// CreatedAt provides the time at which the snapshot was created.
	CreatedAt time.Time `protobuf:"bytes,4,opt,name=created_at,json=createdAt,stdtime" json:"created_at"`
	// UpdatedAt provides the time the info was last updated.
	UpdatedAt time.Time `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,stdtime" json:"updated_at"`
	// Labels are arbitrary data on snapshots.
	//
	// The combined size of a key/value pair cannot exceed 4096 bytes.
	Labels map[string]string `` /* 146-byte string literal not displayed */
}

func (*Info) Descriptor

func (*Info) Descriptor() ([]byte, []int)

func (*Info) Marshal

func (m *Info) Marshal() (dAtA []byte, err error)

func (*Info) MarshalTo

func (m *Info) MarshalTo(dAtA []byte) (int, error)

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) Size

func (m *Info) Size() (n int)

func (*Info) String

func (this *Info) String() string

func (*Info) Unmarshal

func (m *Info) Unmarshal(dAtA []byte) error

type Kind

type Kind int32
const (
	KindUnknown   Kind = 0
	KindView      Kind = 1
	KindActive    Kind = 2
	KindCommitted Kind = 3
)

func (Kind) EnumDescriptor

func (Kind) EnumDescriptor() ([]byte, []int)

func (Kind) String

func (x Kind) String() string

type ListSnapshotsRequest

type ListSnapshotsRequest struct {
	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
}

func (*ListSnapshotsRequest) Descriptor

func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)

func (*ListSnapshotsRequest) Marshal

func (m *ListSnapshotsRequest) Marshal() (dAtA []byte, err error)

func (*ListSnapshotsRequest) MarshalTo

func (m *ListSnapshotsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListSnapshotsRequest) ProtoMessage

func (*ListSnapshotsRequest) ProtoMessage()

func (*ListSnapshotsRequest) Reset

func (m *ListSnapshotsRequest) Reset()

func (*ListSnapshotsRequest) Size

func (m *ListSnapshotsRequest) Size() (n int)

func (*ListSnapshotsRequest) String

func (this *ListSnapshotsRequest) String() string

func (*ListSnapshotsRequest) Unmarshal

func (m *ListSnapshotsRequest) Unmarshal(dAtA []byte) error

type ListSnapshotsResponse

type ListSnapshotsResponse struct {
	Info []Info `protobuf:"bytes,1,rep,name=info" json:"info"`
}

func (*ListSnapshotsResponse) Descriptor

func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)

func (*ListSnapshotsResponse) Marshal

func (m *ListSnapshotsResponse) Marshal() (dAtA []byte, err error)

func (*ListSnapshotsResponse) MarshalTo

func (m *ListSnapshotsResponse) MarshalTo(dAtA []byte) (int, error)

func (*ListSnapshotsResponse) ProtoMessage

func (*ListSnapshotsResponse) ProtoMessage()

func (*ListSnapshotsResponse) Reset

func (m *ListSnapshotsResponse) Reset()

func (*ListSnapshotsResponse) Size

func (m *ListSnapshotsResponse) Size() (n int)

func (*ListSnapshotsResponse) String

func (this *ListSnapshotsResponse) String() string

func (*ListSnapshotsResponse) Unmarshal

func (m *ListSnapshotsResponse) Unmarshal(dAtA []byte) error

type MountsRequest

type MountsRequest struct {
	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
	Key         string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
}

func (*MountsRequest) Descriptor

func (*MountsRequest) Descriptor() ([]byte, []int)

func (*MountsRequest) Marshal

func (m *MountsRequest) Marshal() (dAtA []byte, err error)

func (*MountsRequest) MarshalTo

func (m *MountsRequest) MarshalTo(dAtA []byte) (int, error)

func (*MountsRequest) ProtoMessage

func (*MountsRequest) ProtoMessage()

func (*MountsRequest) Reset

func (m *MountsRequest) Reset()

func (*MountsRequest) Size

func (m *MountsRequest) Size() (n int)

func (*MountsRequest) String

func (this *MountsRequest) String() string

func (*MountsRequest) Unmarshal

func (m *MountsRequest) Unmarshal(dAtA []byte) error

type MountsResponse

type MountsResponse struct {
	Mounts []*containerd_types.Mount `protobuf:"bytes,1,rep,name=mounts" json:"mounts,omitempty"`
}

func (*MountsResponse) Descriptor

func (*MountsResponse) Descriptor() ([]byte, []int)

func (*MountsResponse) Marshal

func (m *MountsResponse) Marshal() (dAtA []byte, err error)

func (*MountsResponse) MarshalTo

func (m *MountsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MountsResponse) ProtoMessage

func (*MountsResponse) ProtoMessage()

func (*MountsResponse) Reset

func (m *MountsResponse) Reset()

func (*MountsResponse) Size

func (m *MountsResponse) Size() (n int)

func (*MountsResponse) String

func (this *MountsResponse) String() string

func (*MountsResponse) Unmarshal

func (m *MountsResponse) Unmarshal(dAtA []byte) error

type PrepareSnapshotRequest

type PrepareSnapshotRequest struct {
	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
	Key         string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Parent      string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	// Labels are arbitrary data on snapshots.
	//
	// The combined size of a key/value pair cannot exceed 4096 bytes.
	Labels map[string]string `` /* 146-byte string literal not displayed */
}

func (*PrepareSnapshotRequest) Descriptor

func (*PrepareSnapshotRequest) Descriptor() ([]byte, []int)

func (*PrepareSnapshotRequest) Marshal

func (m *PrepareSnapshotRequest) Marshal() (dAtA []byte, err error)

func (*PrepareSnapshotRequest) MarshalTo

func (m *PrepareSnapshotRequest) MarshalTo(dAtA []byte) (int, error)

func (*PrepareSnapshotRequest) ProtoMessage

func (*PrepareSnapshotRequest) ProtoMessage()

func (*PrepareSnapshotRequest) Reset

func (m *PrepareSnapshotRequest) Reset()

func (*PrepareSnapshotRequest) Size

func (m *PrepareSnapshotRequest) Size() (n int)

func (*PrepareSnapshotRequest) String

func (this *PrepareSnapshotRequest) String() string

func (*PrepareSnapshotRequest) Unmarshal

func (m *PrepareSnapshotRequest) Unmarshal(dAtA []byte) error

type PrepareSnapshotResponse

type PrepareSnapshotResponse struct {
	Mounts []*containerd_types.Mount `protobuf:"bytes,1,rep,name=mounts" json:"mounts,omitempty"`
}

func (*PrepareSnapshotResponse) Descriptor

func (*PrepareSnapshotResponse) Descriptor() ([]byte, []int)

func (*PrepareSnapshotResponse) Marshal

func (m *PrepareSnapshotResponse) Marshal() (dAtA []byte, err error)

func (*PrepareSnapshotResponse) MarshalTo

func (m *PrepareSnapshotResponse) MarshalTo(dAtA []byte) (int, error)

func (*PrepareSnapshotResponse) ProtoMessage

func (*PrepareSnapshotResponse) ProtoMessage()

func (*PrepareSnapshotResponse) Reset

func (m *PrepareSnapshotResponse) Reset()

func (*PrepareSnapshotResponse) Size

func (m *PrepareSnapshotResponse) Size() (n int)

func (*PrepareSnapshotResponse) String

func (this *PrepareSnapshotResponse) String() string

func (*PrepareSnapshotResponse) Unmarshal

func (m *PrepareSnapshotResponse) Unmarshal(dAtA []byte) error

type RemoveSnapshotRequest

type RemoveSnapshotRequest struct {
	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
	Key         string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
}

func (*RemoveSnapshotRequest) Descriptor

func (*RemoveSnapshotRequest) Descriptor() ([]byte, []int)

func (*RemoveSnapshotRequest) Marshal

func (m *RemoveSnapshotRequest) Marshal() (dAtA []byte, err error)

func (*RemoveSnapshotRequest) MarshalTo

func (m *RemoveSnapshotRequest) MarshalTo(dAtA []byte) (int, error)

func (*RemoveSnapshotRequest) ProtoMessage

func (*RemoveSnapshotRequest) ProtoMessage()

func (*RemoveSnapshotRequest) Reset

func (m *RemoveSnapshotRequest) Reset()

func (*RemoveSnapshotRequest) Size

func (m *RemoveSnapshotRequest) Size() (n int)

func (*RemoveSnapshotRequest) String

func (this *RemoveSnapshotRequest) String() string

func (*RemoveSnapshotRequest) Unmarshal

func (m *RemoveSnapshotRequest) Unmarshal(dAtA []byte) error

type Snapshots_ListClient

type Snapshots_ListClient interface {
	Recv() (*ListSnapshotsResponse, error)
	grpc.ClientStream
}

type Snapshots_ListServer

type Snapshots_ListServer interface {
	Send(*ListSnapshotsResponse) error
	grpc.ServerStream
}

type StatSnapshotRequest

type StatSnapshotRequest struct {
	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
	Key         string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
}

func (*StatSnapshotRequest) Descriptor

func (*StatSnapshotRequest) Descriptor() ([]byte, []int)

func (*StatSnapshotRequest) Marshal

func (m *StatSnapshotRequest) Marshal() (dAtA []byte, err error)

func (*StatSnapshotRequest) MarshalTo

func (m *StatSnapshotRequest) MarshalTo(dAtA []byte) (int, error)

func (*StatSnapshotRequest) ProtoMessage

func (*StatSnapshotRequest) ProtoMessage()

func (*StatSnapshotRequest) Reset

func (m *StatSnapshotRequest) Reset()

func (*StatSnapshotRequest) Size

func (m *StatSnapshotRequest) Size() (n int)

func (*StatSnapshotRequest) String

func (this *StatSnapshotRequest) String() string

func (*StatSnapshotRequest) Unmarshal

func (m *StatSnapshotRequest) Unmarshal(dAtA []byte) error

type StatSnapshotResponse

type StatSnapshotResponse struct {
	Info Info `protobuf:"bytes,1,opt,name=info" json:"info"`
}

func (*StatSnapshotResponse) Descriptor

func (*StatSnapshotResponse) Descriptor() ([]byte, []int)

func (*StatSnapshotResponse) Marshal

func (m *StatSnapshotResponse) Marshal() (dAtA []byte, err error)

func (*StatSnapshotResponse) MarshalTo

func (m *StatSnapshotResponse) MarshalTo(dAtA []byte) (int, error)

func (*StatSnapshotResponse) ProtoMessage

func (*StatSnapshotResponse) ProtoMessage()

func (*StatSnapshotResponse) Reset

func (m *StatSnapshotResponse) Reset()

func (*StatSnapshotResponse) Size

func (m *StatSnapshotResponse) Size() (n int)

func (*StatSnapshotResponse) String

func (this *StatSnapshotResponse) String() string

func (*StatSnapshotResponse) Unmarshal

func (m *StatSnapshotResponse) Unmarshal(dAtA []byte) error

type UpdateSnapshotRequest

type UpdateSnapshotRequest struct {
	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
	Info        Info   `protobuf:"bytes,2,opt,name=info" json:"info"`
	// UpdateMask specifies which fields to perform the update on. If empty,
	// the operation applies to all fields.
	//
	// In info, Name, Parent, Kind, Created are immutable,
	// other field may be updated using this mask.
	// If no mask is provided, all mutable field are updated.
	UpdateMask *google_protobuf2.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
}

func (*UpdateSnapshotRequest) Descriptor

func (*UpdateSnapshotRequest) Descriptor() ([]byte, []int)

func (*UpdateSnapshotRequest) Marshal

func (m *UpdateSnapshotRequest) Marshal() (dAtA []byte, err error)

func (*UpdateSnapshotRequest) MarshalTo

func (m *UpdateSnapshotRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdateSnapshotRequest) ProtoMessage

func (*UpdateSnapshotRequest) ProtoMessage()

func (*UpdateSnapshotRequest) Reset

func (m *UpdateSnapshotRequest) Reset()

func (*UpdateSnapshotRequest) Size

func (m *UpdateSnapshotRequest) Size() (n int)

func (*UpdateSnapshotRequest) String

func (this *UpdateSnapshotRequest) String() string

func (*UpdateSnapshotRequest) Unmarshal

func (m *UpdateSnapshotRequest) Unmarshal(dAtA []byte) error

type UpdateSnapshotResponse

type UpdateSnapshotResponse struct {
	Info Info `protobuf:"bytes,1,opt,name=info" json:"info"`
}

func (*UpdateSnapshotResponse) Descriptor

func (*UpdateSnapshotResponse) Descriptor() ([]byte, []int)

func (*UpdateSnapshotResponse) Marshal

func (m *UpdateSnapshotResponse) Marshal() (dAtA []byte, err error)

func (*UpdateSnapshotResponse) MarshalTo

func (m *UpdateSnapshotResponse) MarshalTo(dAtA []byte) (int, error)

func (*UpdateSnapshotResponse) ProtoMessage

func (*UpdateSnapshotResponse) ProtoMessage()

func (*UpdateSnapshotResponse) Reset

func (m *UpdateSnapshotResponse) Reset()

func (*UpdateSnapshotResponse) Size

func (m *UpdateSnapshotResponse) Size() (n int)

func (*UpdateSnapshotResponse) String

func (this *UpdateSnapshotResponse) String() string

func (*UpdateSnapshotResponse) Unmarshal

func (m *UpdateSnapshotResponse) Unmarshal(dAtA []byte) error

type UsageRequest

type UsageRequest struct {
	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
	Key         string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
}

func (*UsageRequest) Descriptor

func (*UsageRequest) Descriptor() ([]byte, []int)

func (*UsageRequest) Marshal

func (m *UsageRequest) Marshal() (dAtA []byte, err error)

func (*UsageRequest) MarshalTo

func (m *UsageRequest) MarshalTo(dAtA []byte) (int, error)

func (*UsageRequest) ProtoMessage

func (*UsageRequest) ProtoMessage()

func (*UsageRequest) Reset

func (m *UsageRequest) Reset()

func (*UsageRequest) Size

func (m *UsageRequest) Size() (n int)

func (*UsageRequest) String

func (this *UsageRequest) String() string

func (*UsageRequest) Unmarshal

func (m *UsageRequest) Unmarshal(dAtA []byte) error

type UsageResponse

type UsageResponse struct {
	Size_  int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Inodes int64 `protobuf:"varint,2,opt,name=inodes,proto3" json:"inodes,omitempty"`
}

func (*UsageResponse) Descriptor

func (*UsageResponse) Descriptor() ([]byte, []int)

func (*UsageResponse) Marshal

func (m *UsageResponse) Marshal() (dAtA []byte, err error)

func (*UsageResponse) MarshalTo

func (m *UsageResponse) MarshalTo(dAtA []byte) (int, error)

func (*UsageResponse) ProtoMessage

func (*UsageResponse) ProtoMessage()

func (*UsageResponse) Reset

func (m *UsageResponse) Reset()

func (*UsageResponse) Size

func (m *UsageResponse) Size() (n int)

func (*UsageResponse) String

func (this *UsageResponse) String() string

func (*UsageResponse) Unmarshal

func (m *UsageResponse) Unmarshal(dAtA []byte) error

type ViewSnapshotRequest

type ViewSnapshotRequest struct {
	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
	Key         string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Parent      string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	// Labels are arbitrary data on snapshots.
	//
	// The combined size of a key/value pair cannot exceed 4096 bytes.
	Labels map[string]string `` /* 146-byte string literal not displayed */
}

func (*ViewSnapshotRequest) Descriptor

func (*ViewSnapshotRequest) Descriptor() ([]byte, []int)

func (*ViewSnapshotRequest) Marshal

func (m *ViewSnapshotRequest) Marshal() (dAtA []byte, err error)

func (*ViewSnapshotRequest) MarshalTo

func (m *ViewSnapshotRequest) MarshalTo(dAtA []byte) (int, error)

func (*ViewSnapshotRequest) ProtoMessage

func (*ViewSnapshotRequest) ProtoMessage()

func (*ViewSnapshotRequest) Reset

func (m *ViewSnapshotRequest) Reset()

func (*ViewSnapshotRequest) Size

func (m *ViewSnapshotRequest) Size() (n int)

func (*ViewSnapshotRequest) String

func (this *ViewSnapshotRequest) String() string

func (*ViewSnapshotRequest) Unmarshal

func (m *ViewSnapshotRequest) Unmarshal(dAtA []byte) error

type ViewSnapshotResponse

type ViewSnapshotResponse struct {
	Mounts []*containerd_types.Mount `protobuf:"bytes,1,rep,name=mounts" json:"mounts,omitempty"`
}

func (*ViewSnapshotResponse) Descriptor

func (*ViewSnapshotResponse) Descriptor() ([]byte, []int)

func (*ViewSnapshotResponse) Marshal

func (m *ViewSnapshotResponse) Marshal() (dAtA []byte, err error)

func (*ViewSnapshotResponse) MarshalTo

func (m *ViewSnapshotResponse) MarshalTo(dAtA []byte) (int, error)

func (*ViewSnapshotResponse) ProtoMessage

func (*ViewSnapshotResponse) ProtoMessage()

func (*ViewSnapshotResponse) Reset

func (m *ViewSnapshotResponse) Reset()

func (*ViewSnapshotResponse) Size

func (m *ViewSnapshotResponse) Size() (n int)

func (*ViewSnapshotResponse) String

func (this *ViewSnapshotResponse) String() string

func (*ViewSnapshotResponse) Unmarshal

func (m *ViewSnapshotResponse) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL