images

package
v1.3.9-k3s2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthImages = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowImages   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterImagesServer

func RegisterImagesServer(s *grpc.Server, srv ImagesServer)

Types

type CreateImageRequest

type CreateImageRequest struct {
	Image                Image    `protobuf:"bytes,1,opt,name=image,proto3" json:"image"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateImageRequest) Descriptor

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

func (*CreateImageRequest) Marshal

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

func (*CreateImageRequest) MarshalTo

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

func (*CreateImageRequest) ProtoMessage

func (*CreateImageRequest) ProtoMessage()

func (*CreateImageRequest) Reset

func (m *CreateImageRequest) Reset()

func (*CreateImageRequest) Size

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

func (*CreateImageRequest) String

func (this *CreateImageRequest) String() string

func (*CreateImageRequest) Unmarshal

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

func (*CreateImageRequest) XXX_DiscardUnknown added in v1.3.0

func (m *CreateImageRequest) XXX_DiscardUnknown()

func (*CreateImageRequest) XXX_Marshal added in v1.3.0

func (m *CreateImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateImageRequest) XXX_Merge added in v1.3.0

func (m *CreateImageRequest) XXX_Merge(src proto.Message)

func (*CreateImageRequest) XXX_Size added in v1.3.0

func (m *CreateImageRequest) XXX_Size() int

func (*CreateImageRequest) XXX_Unmarshal added in v1.3.0

func (m *CreateImageRequest) XXX_Unmarshal(b []byte) error

type CreateImageResponse

type CreateImageResponse struct {
	Image                Image    `protobuf:"bytes,1,opt,name=image,proto3" json:"image"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateImageResponse) Descriptor

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

func (*CreateImageResponse) Marshal

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

func (*CreateImageResponse) MarshalTo

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

func (*CreateImageResponse) ProtoMessage

func (*CreateImageResponse) ProtoMessage()

func (*CreateImageResponse) Reset

func (m *CreateImageResponse) Reset()

func (*CreateImageResponse) Size

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

func (*CreateImageResponse) String

func (this *CreateImageResponse) String() string

func (*CreateImageResponse) Unmarshal

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

func (*CreateImageResponse) XXX_DiscardUnknown added in v1.3.0

func (m *CreateImageResponse) XXX_DiscardUnknown()

func (*CreateImageResponse) XXX_Marshal added in v1.3.0

func (m *CreateImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateImageResponse) XXX_Merge added in v1.3.0

func (m *CreateImageResponse) XXX_Merge(src proto.Message)

func (*CreateImageResponse) XXX_Size added in v1.3.0

func (m *CreateImageResponse) XXX_Size() int

func (*CreateImageResponse) XXX_Unmarshal added in v1.3.0

func (m *CreateImageResponse) XXX_Unmarshal(b []byte) error

type DeleteImageRequest

type DeleteImageRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Sync indicates that the delete and cleanup should be done
	// synchronously before returning to the caller
	//
	// Default is false
	Sync                 bool     `protobuf:"varint,2,opt,name=sync,proto3" json:"sync,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteImageRequest) Descriptor

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

func (*DeleteImageRequest) Marshal

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

func (*DeleteImageRequest) MarshalTo

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

func (*DeleteImageRequest) ProtoMessage

func (*DeleteImageRequest) ProtoMessage()

func (*DeleteImageRequest) Reset

func (m *DeleteImageRequest) Reset()

func (*DeleteImageRequest) Size

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

func (*DeleteImageRequest) String

func (this *DeleteImageRequest) String() string

func (*DeleteImageRequest) Unmarshal

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

func (*DeleteImageRequest) XXX_DiscardUnknown added in v1.3.0

func (m *DeleteImageRequest) XXX_DiscardUnknown()

func (*DeleteImageRequest) XXX_Marshal added in v1.3.0

func (m *DeleteImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteImageRequest) XXX_Merge added in v1.3.0

func (m *DeleteImageRequest) XXX_Merge(src proto.Message)

func (*DeleteImageRequest) XXX_Size added in v1.3.0

func (m *DeleteImageRequest) XXX_Size() int

func (*DeleteImageRequest) XXX_Unmarshal added in v1.3.0

func (m *DeleteImageRequest) XXX_Unmarshal(b []byte) error

type GetImageRequest

type GetImageRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetImageRequest) Descriptor

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

func (*GetImageRequest) Marshal

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

func (*GetImageRequest) MarshalTo

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

func (*GetImageRequest) ProtoMessage

func (*GetImageRequest) ProtoMessage()

func (*GetImageRequest) Reset

func (m *GetImageRequest) Reset()

func (*GetImageRequest) Size

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

func (*GetImageRequest) String

func (this *GetImageRequest) String() string

func (*GetImageRequest) Unmarshal

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

func (*GetImageRequest) XXX_DiscardUnknown added in v1.3.0

func (m *GetImageRequest) XXX_DiscardUnknown()

func (*GetImageRequest) XXX_Marshal added in v1.3.0

func (m *GetImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetImageRequest) XXX_Merge added in v1.3.0

func (m *GetImageRequest) XXX_Merge(src proto.Message)

func (*GetImageRequest) XXX_Size added in v1.3.0

func (m *GetImageRequest) XXX_Size() int

func (*GetImageRequest) XXX_Unmarshal added in v1.3.0

func (m *GetImageRequest) XXX_Unmarshal(b []byte) error

type GetImageResponse

type GetImageResponse struct {
	Image                *Image   `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetImageResponse) Descriptor

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

func (*GetImageResponse) Marshal

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

func (*GetImageResponse) MarshalTo

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

func (*GetImageResponse) ProtoMessage

func (*GetImageResponse) ProtoMessage()

func (*GetImageResponse) Reset

func (m *GetImageResponse) Reset()

func (*GetImageResponse) Size

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

func (*GetImageResponse) String

func (this *GetImageResponse) String() string

func (*GetImageResponse) Unmarshal

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

func (*GetImageResponse) XXX_DiscardUnknown added in v1.3.0

func (m *GetImageResponse) XXX_DiscardUnknown()

func (*GetImageResponse) XXX_Marshal added in v1.3.0

func (m *GetImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetImageResponse) XXX_Merge added in v1.3.0

func (m *GetImageResponse) XXX_Merge(src proto.Message)

func (*GetImageResponse) XXX_Size added in v1.3.0

func (m *GetImageResponse) XXX_Size() int

func (*GetImageResponse) XXX_Unmarshal added in v1.3.0

func (m *GetImageResponse) XXX_Unmarshal(b []byte) error

type Image

type Image struct {
	// Name provides a unique name for the image.
	//
	// Containerd treats this as the primary identifier.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Labels provides free form labels for the image. These are runtime only
	// and do not get inherited into the package image in any way.
	//
	// Labels may be updated using the field mask.
	// The combined size of a key/value pair cannot exceed 4096 bytes.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Target describes the content entry point of the image.
	Target types.Descriptor `protobuf:"bytes,3,opt,name=target,proto3" json:"target"`
	// CreatedAt is the time the image was first created.
	CreatedAt time.Time `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"`
	// UpdatedAt is the last time the image was mutated.
	UpdatedAt            time.Time `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Image) Descriptor

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

func (*Image) Marshal

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

func (*Image) MarshalTo

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

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) Size

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

func (*Image) String

func (this *Image) String() string

func (*Image) Unmarshal

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

func (*Image) XXX_DiscardUnknown added in v1.3.0

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal added in v1.3.0

func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Image) XXX_Merge added in v1.3.0

func (m *Image) XXX_Merge(src proto.Message)

func (*Image) XXX_Size added in v1.3.0

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal added in v1.3.0

func (m *Image) XXX_Unmarshal(b []byte) error

type ImagesClient

type ImagesClient interface {
	// Get returns an image by name.
	Get(ctx context.Context, in *GetImageRequest, opts ...grpc.CallOption) (*GetImageResponse, error)
	// List returns a list of all images known to containerd.
	List(ctx context.Context, in *ListImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error)
	// Create an image record in the metadata store.
	//
	// The name of the image must be unique.
	Create(ctx context.Context, in *CreateImageRequest, opts ...grpc.CallOption) (*CreateImageResponse, error)
	// Update assigns the name to a given target image based on the provided
	// image.
	Update(ctx context.Context, in *UpdateImageRequest, opts ...grpc.CallOption) (*UpdateImageResponse, error)
	// Delete deletes the image by name.
	Delete(ctx context.Context, in *DeleteImageRequest, opts ...grpc.CallOption) (*types1.Empty, error)
}

ImagesClient is the client API for Images service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewImagesClient

func NewImagesClient(cc *grpc.ClientConn) ImagesClient

type ImagesServer

type ImagesServer interface {
	// Get returns an image by name.
	Get(context.Context, *GetImageRequest) (*GetImageResponse, error)
	// List returns a list of all images known to containerd.
	List(context.Context, *ListImagesRequest) (*ListImagesResponse, error)
	// Create an image record in the metadata store.
	//
	// The name of the image must be unique.
	Create(context.Context, *CreateImageRequest) (*CreateImageResponse, error)
	// Update assigns the name to a given target image based on the provided
	// image.
	Update(context.Context, *UpdateImageRequest) (*UpdateImageResponse, error)
	// Delete deletes the image by name.
	Delete(context.Context, *DeleteImageRequest) (*types1.Empty, error)
}

ImagesServer is the server API for Images service.

type ListImagesRequest

type ListImagesRequest struct {
	// Filters contains one or more filters using the syntax defined in the
	// containerd filter package.
	//
	// The returned result will be those that match any of the provided
	// filters. Expanded, images that match the following will be
	// returned:
	//
	//   filters[0] or filters[1] or ... or filters[n-1] or filters[n]
	//
	// If filters is zero-length or nil, all items will be returned.
	Filters              []string `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListImagesRequest) Descriptor

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

func (*ListImagesRequest) Marshal

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

func (*ListImagesRequest) MarshalTo

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

func (*ListImagesRequest) ProtoMessage

func (*ListImagesRequest) ProtoMessage()

func (*ListImagesRequest) Reset

func (m *ListImagesRequest) Reset()

func (*ListImagesRequest) Size

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

func (*ListImagesRequest) String

func (this *ListImagesRequest) String() string

func (*ListImagesRequest) Unmarshal

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

func (*ListImagesRequest) XXX_DiscardUnknown added in v1.3.0

func (m *ListImagesRequest) XXX_DiscardUnknown()

func (*ListImagesRequest) XXX_Marshal added in v1.3.0

func (m *ListImagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListImagesRequest) XXX_Merge added in v1.3.0

func (m *ListImagesRequest) XXX_Merge(src proto.Message)

func (*ListImagesRequest) XXX_Size added in v1.3.0

func (m *ListImagesRequest) XXX_Size() int

func (*ListImagesRequest) XXX_Unmarshal added in v1.3.0

func (m *ListImagesRequest) XXX_Unmarshal(b []byte) error

type ListImagesResponse

type ListImagesResponse struct {
	Images               []Image  `protobuf:"bytes,1,rep,name=images,proto3" json:"images"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListImagesResponse) Descriptor

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

func (*ListImagesResponse) Marshal

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

func (*ListImagesResponse) MarshalTo

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

func (*ListImagesResponse) ProtoMessage

func (*ListImagesResponse) ProtoMessage()

func (*ListImagesResponse) Reset

func (m *ListImagesResponse) Reset()

func (*ListImagesResponse) Size

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

func (*ListImagesResponse) String

func (this *ListImagesResponse) String() string

func (*ListImagesResponse) Unmarshal

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

func (*ListImagesResponse) XXX_DiscardUnknown added in v1.3.0

func (m *ListImagesResponse) XXX_DiscardUnknown()

func (*ListImagesResponse) XXX_Marshal added in v1.3.0

func (m *ListImagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListImagesResponse) XXX_Merge added in v1.3.0

func (m *ListImagesResponse) XXX_Merge(src proto.Message)

func (*ListImagesResponse) XXX_Size added in v1.3.0

func (m *ListImagesResponse) XXX_Size() int

func (*ListImagesResponse) XXX_Unmarshal added in v1.3.0

func (m *ListImagesResponse) XXX_Unmarshal(b []byte) error

type UpdateImageRequest

type UpdateImageRequest struct {
	// Image provides a full or partial image for update.
	//
	// The name field must be set or an error will be returned.
	Image Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image"`
	// UpdateMask specifies which fields to perform the update on. If empty,
	// the operation applies to all fields.
	UpdateMask           *types1.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*UpdateImageRequest) Descriptor

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

func (*UpdateImageRequest) Marshal

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

func (*UpdateImageRequest) MarshalTo

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

func (*UpdateImageRequest) ProtoMessage

func (*UpdateImageRequest) ProtoMessage()

func (*UpdateImageRequest) Reset

func (m *UpdateImageRequest) Reset()

func (*UpdateImageRequest) Size

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

func (*UpdateImageRequest) String

func (this *UpdateImageRequest) String() string

func (*UpdateImageRequest) Unmarshal

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

func (*UpdateImageRequest) XXX_DiscardUnknown added in v1.3.0

func (m *UpdateImageRequest) XXX_DiscardUnknown()

func (*UpdateImageRequest) XXX_Marshal added in v1.3.0

func (m *UpdateImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateImageRequest) XXX_Merge added in v1.3.0

func (m *UpdateImageRequest) XXX_Merge(src proto.Message)

func (*UpdateImageRequest) XXX_Size added in v1.3.0

func (m *UpdateImageRequest) XXX_Size() int

func (*UpdateImageRequest) XXX_Unmarshal added in v1.3.0

func (m *UpdateImageRequest) XXX_Unmarshal(b []byte) error

type UpdateImageResponse

type UpdateImageResponse struct {
	Image                Image    `protobuf:"bytes,1,opt,name=image,proto3" json:"image"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateImageResponse) Descriptor

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

func (*UpdateImageResponse) Marshal

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

func (*UpdateImageResponse) MarshalTo

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

func (*UpdateImageResponse) ProtoMessage

func (*UpdateImageResponse) ProtoMessage()

func (*UpdateImageResponse) Reset

func (m *UpdateImageResponse) Reset()

func (*UpdateImageResponse) Size

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

func (*UpdateImageResponse) String

func (this *UpdateImageResponse) String() string

func (*UpdateImageResponse) Unmarshal

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

func (*UpdateImageResponse) XXX_DiscardUnknown added in v1.3.0

func (m *UpdateImageResponse) XXX_DiscardUnknown()

func (*UpdateImageResponse) XXX_Marshal added in v1.3.0

func (m *UpdateImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateImageResponse) XXX_Merge added in v1.3.0

func (m *UpdateImageResponse) XXX_Merge(src proto.Message)

func (*UpdateImageResponse) XXX_Size added in v1.3.0

func (m *UpdateImageResponse) XXX_Size() int

func (*UpdateImageResponse) XXX_Unmarshal added in v1.3.0

func (m *UpdateImageResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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