Documentation
¶
Overview ¶
Package api_v1 is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
LoadImageRequest LoadImageResponse
Index ¶
- Variables
- func RegisterCRIPluginServiceServer(s *grpc.Server, srv CRIPluginServiceServer)
- type CRIPluginServiceClient
- type CRIPluginServiceServer
- type LoadImageRequest
- func (*LoadImageRequest) Descriptor() ([]byte, []int)
- func (m *LoadImageRequest) GetFilePath() string
- func (m *LoadImageRequest) Marshal() (dAtA []byte, err error)
- func (m *LoadImageRequest) MarshalTo(dAtA []byte) (int, error)
- func (*LoadImageRequest) ProtoMessage()
- func (m *LoadImageRequest) Reset()
- func (m *LoadImageRequest) Size() (n int)
- func (this *LoadImageRequest) String() string
- func (m *LoadImageRequest) Unmarshal(dAtA []byte) error
- type LoadImageResponse
- func (*LoadImageResponse) Descriptor() ([]byte, []int)
- func (m *LoadImageResponse) GetImages() []string
- func (m *LoadImageResponse) Marshal() (dAtA []byte, err error)
- func (m *LoadImageResponse) MarshalTo(dAtA []byte) (int, error)
- func (*LoadImageResponse) ProtoMessage()
- func (m *LoadImageResponse) Reset()
- func (m *LoadImageResponse) Size() (n int)
- func (this *LoadImageResponse) String() string
- func (m *LoadImageResponse) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
)
Functions ¶
func RegisterCRIPluginServiceServer ¶
func RegisterCRIPluginServiceServer(s *grpc.Server, srv CRIPluginServiceServer)
Types ¶
type CRIPluginServiceClient ¶
type CRIPluginServiceClient interface {
// LoadImage loads a image into containerd.
LoadImage(ctx context.Context, in *LoadImageRequest, opts ...grpc.CallOption) (*LoadImageResponse, error)
}
func NewCRIPluginServiceClient ¶
func NewCRIPluginServiceClient(cc *grpc.ClientConn) CRIPluginServiceClient
type CRIPluginServiceServer ¶
type CRIPluginServiceServer interface {
// LoadImage loads a image into containerd.
LoadImage(context.Context, *LoadImageRequest) (*LoadImageResponse, error)
}
type LoadImageRequest ¶
type LoadImageRequest struct {
// FilePath is the absolute path of docker image tarball.
FilePath string `protobuf:"bytes,1,opt,name=FilePath,proto3" json:"FilePath,omitempty"`
}
func (*LoadImageRequest) Descriptor ¶
func (*LoadImageRequest) Descriptor() ([]byte, []int)
func (*LoadImageRequest) GetFilePath ¶
func (m *LoadImageRequest) GetFilePath() string
func (*LoadImageRequest) ProtoMessage ¶
func (*LoadImageRequest) ProtoMessage()
type LoadImageResponse ¶
type LoadImageResponse struct {
// Images have been loaded.
Images []string `protobuf:"bytes,1,rep,name=Images" json:"Images,omitempty"`
}
func (*LoadImageResponse) Descriptor ¶
func (*LoadImageResponse) Descriptor() ([]byte, []int)
func (*LoadImageResponse) MarshalTo ¶
func (m *LoadImageResponse) MarshalTo(dAtA []byte) (int, error)
func (*LoadImageResponse) ProtoMessage ¶
func (*LoadImageResponse) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.