Documentation ¶
Index ¶
- Variables
- func Resolver(authConfig *criv1.AuthConfig, statusTracker docker.StatusTracker) remotes.Resolver
- type Server
- func (s *Server) Close()
- func (s *Server) ImageService() criv1.ImageServiceClient
- func (s *Server) List(ctx context.Context, req *imagesv1.ImageListRequest) (*imagesv1.ImageListResponse, error)
- func (s *Server) Pull(ctx context.Context, req *imagesv1.ImagePullRequest) (*imagesv1.ImagePullResponse, error)
- func (s *Server) PullProgress(req *imagesv1.ImageProgressRequest, srv imagesv1.Images_PullProgressServer) error
- func (s *Server) Push(ctx context.Context, req *imagesv1.ImagePushRequest) (*imagesv1.ImagePushResponse, error)
- func (s *Server) PushProgress(req *imagesv1.ImageProgressRequest, srv imagesv1.Images_PushProgressServer) error
- func (s *Server) Remove(ctx context.Context, req *imagesv1.ImageRemoveRequest) (*imagesv1.ImageRemoveResponse, error)
- func (s *Server) Status(ctx context.Context, req *imagesv1.ImageStatusRequest) (*imagesv1.ImageStatusResponse, error)
- func (s *Server) Tag(ctx context.Context, req *imagesv1.ImageTagRequest) (*imagesv1.ImageTagResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PushTracker = docker.NewInMemoryTracker()
)
Functions ¶
func Resolver ¶
func Resolver(authConfig *criv1.AuthConfig, statusTracker docker.StatusTracker) remotes.Resolver
Types ¶
type Server ¶
type Server struct { Kubernetes *client.Interface Buildkit *buildkit.Client Containerd *containerd.Client // contains filtered or unexported fields }
func (*Server) ImageService ¶
func (s *Server) ImageService() criv1.ImageServiceClient
func (*Server) List ¶
func (s *Server) List(ctx context.Context, req *imagesv1.ImageListRequest) (*imagesv1.ImageListResponse, error)
List images server-side impl
func (*Server) Pull ¶
func (s *Server) Pull(ctx context.Context, req *imagesv1.ImagePullRequest) (*imagesv1.ImagePullResponse, error)
Pull server-side impl
func (*Server) PullProgress ¶
func (s *Server) PullProgress(req *imagesv1.ImageProgressRequest, srv imagesv1.Images_PullProgressServer) error
PullProgress server-side impl
func (*Server) Push ¶
func (s *Server) Push(ctx context.Context, req *imagesv1.ImagePushRequest) (*imagesv1.ImagePushResponse, error)
Push server-side impl
func (*Server) PushProgress ¶
func (s *Server) PushProgress(req *imagesv1.ImageProgressRequest, srv imagesv1.Images_PushProgressServer) error
PushProgress server-side impl
func (*Server) Remove ¶
func (s *Server) Remove(ctx context.Context, req *imagesv1.ImageRemoveRequest) (*imagesv1.ImageRemoveResponse, error)
Remove image server-side impl
func (*Server) Status ¶
func (s *Server) Status(ctx context.Context, req *imagesv1.ImageStatusRequest) (*imagesv1.ImageStatusResponse, error)
Status of an image server-side impl (unused)
func (*Server) Tag ¶
func (s *Server) Tag(ctx context.Context, req *imagesv1.ImageTagRequest) (*imagesv1.ImageTagResponse, error)
Tag image server-side impl, adapted from containerd's `ctr tag` implementation
Click to show internal directories.
Click to hide internal directories.