Documentation ¶
Index ¶
- func GetRepository(imageRef string) (string, error)
- func ResolveRepositoryAuthProvider(repository string, ...) (dockerregistryproxyv1.AuthenticationProviderAPIClient, error)
- type ImageService
- func (s *ImageService) ImageFsInfo(ctx context.Context, _ *runtimeapi.ImageFsInfoRequest) (*runtimeapi.ImageFsInfoResponse, error)
- func (s *ImageService) ImageStatus(ctx context.Context, req *runtimeapi.ImageStatusRequest) (*runtimeapi.ImageStatusResponse, error)
- func (s *ImageService) ListImages(ctx context.Context, req *runtimeapi.ListImagesRequest) (*runtimeapi.ListImagesResponse, error)
- func (s *ImageService) PullImage(ctx context.Context, req *runtimeapi.PullImageRequest) (*runtimeapi.PullImageResponse, error)
- func (s *ImageService) RemoveImage(ctx context.Context, req *runtimeapi.RemoveImageRequest) (*runtimeapi.RemoveImageResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepository ¶
GetRepository returns the given image's repository
func ResolveRepositoryAuthProvider ¶
func ResolveRepositoryAuthProvider(repository string, authProviders map[string]dockerregistryproxyv1.AuthenticationProviderAPIClient) (dockerregistryproxyv1.AuthenticationProviderAPIClient, error)
ResolveRepositoryAuthProvider resolves the authentication provider to use for the given image
Types ¶
type ImageService ¶
type ImageService struct {
// contains filtered or unexported fields
}
ImageService represents a custom Docker image service for K8s
func NewImageService ¶
func NewImageService(authProviders map[string]dockerregistryproxyv1.AuthenticationProviderAPIClient) (*ImageService, error)
NewImageService returns a new instance of the Docker Image Service with the given authentication providers
func (*ImageService) ImageFsInfo ¶
func (s *ImageService) ImageFsInfo(ctx context.Context, _ *runtimeapi.ImageFsInfoRequest) (*runtimeapi.ImageFsInfoResponse, error)
ImageFsInfo returns status about the filesystem that images are stored on
func (*ImageService) ImageStatus ¶
func (s *ImageService) ImageStatus(ctx context.Context, req *runtimeapi.ImageStatusRequest) (*runtimeapi.ImageStatusResponse, error)
ImageStatus returns the status of a given image
func (*ImageService) ListImages ¶
func (s *ImageService) ListImages(ctx context.Context, req *runtimeapi.ListImagesRequest) (*runtimeapi.ListImagesResponse, error)
ListImages returns a List of Images TODO: filter images based on request
func (*ImageService) PullImage ¶
func (s *ImageService) PullImage(ctx context.Context, req *runtimeapi.PullImageRequest) (*runtimeapi.PullImageResponse, error)
PullImage pulls a Docker Image
func (*ImageService) RemoveImage ¶
func (s *ImageService) RemoveImage(ctx context.Context, req *runtimeapi.RemoveImageRequest) (*runtimeapi.RemoveImageResponse, error)
RemoveImage Removes the given Docker image
Click to show internal directories.
Click to hide internal directories.