grpc

package
v0.0.0-...-4ffa845 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthImage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowImage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupImage = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterImageService

func RegisterImageService(srv *github_com_containerd_ttrpc.Server, svc ImageService)

Types

type ImageService

type ImageService interface {
	PullImage(ctx context.Context, req *PullImageRequest) (*PullImageResponse, error)
}

type PullImageRequest

type PullImageRequest struct {
	// Image name (e.g. docker.io/library/busybox:latest).
	Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// Unique image identifier, used to avoid duplication when unpacking the image layers.
	ContainerId          string   `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PullImageRequest) Descriptor

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

func (*PullImageRequest) Marshal

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

func (*PullImageRequest) MarshalTo

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

func (*PullImageRequest) MarshalToSizedBuffer

func (m *PullImageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PullImageRequest) ProtoMessage

func (*PullImageRequest) ProtoMessage()

func (*PullImageRequest) Reset

func (m *PullImageRequest) Reset()

func (*PullImageRequest) Size

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

func (*PullImageRequest) String

func (this *PullImageRequest) String() string

func (*PullImageRequest) Unmarshal

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

func (*PullImageRequest) XXX_DiscardUnknown

func (m *PullImageRequest) XXX_DiscardUnknown()

func (*PullImageRequest) XXX_Marshal

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

func (*PullImageRequest) XXX_Merge

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

func (*PullImageRequest) XXX_Size

func (m *PullImageRequest) XXX_Size() int

func (*PullImageRequest) XXX_Unmarshal

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

type PullImageResponse

type PullImageResponse struct {
	// Reference to the image in use. For most runtimes, this should be an
	// image ID or digest.
	ImageRef             string   `protobuf:"bytes,1,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PullImageResponse) Descriptor

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

func (*PullImageResponse) Marshal

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

func (*PullImageResponse) MarshalTo

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

func (*PullImageResponse) MarshalToSizedBuffer

func (m *PullImageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PullImageResponse) ProtoMessage

func (*PullImageResponse) ProtoMessage()

func (*PullImageResponse) Reset

func (m *PullImageResponse) Reset()

func (*PullImageResponse) Size

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

func (*PullImageResponse) String

func (this *PullImageResponse) String() string

func (*PullImageResponse) Unmarshal

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

func (*PullImageResponse) XXX_DiscardUnknown

func (m *PullImageResponse) XXX_DiscardUnknown()

func (*PullImageResponse) XXX_Marshal

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

func (*PullImageResponse) XXX_Merge

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

func (*PullImageResponse) XXX_Size

func (m *PullImageResponse) XXX_Size() int

func (*PullImageResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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