Documentation
¶
Index ¶
- type SingularityRegistry
- func (s *SingularityRegistry) ImageFsInfo(context.Context, *k8s.ImageFsInfoRequest) (*k8s.ImageFsInfoResponse, error)
- func (s *SingularityRegistry) ImageStatus(ctx context.Context, req *k8s.ImageStatusRequest) (*k8s.ImageStatusResponse, error)
- func (s *SingularityRegistry) ListImages(ctx context.Context, req *k8s.ListImagesRequest) (*k8s.ListImagesResponse, error)
- func (s *SingularityRegistry) PullImage(ctx context.Context, req *k8s.PullImageRequest) (*k8s.PullImageResponse, error)
- func (s *SingularityRegistry) RemoveImage(ctx context.Context, req *k8s.RemoveImageRequest) (*k8s.RemoveImageResponse, error)
- func (s *SingularityRegistry) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SingularityRegistry ¶
type SingularityRegistry struct {
// contains filtered or unexported fields
}
SingularityRegistry implements k8s ImageService interface.
func NewSingularityRegistry ¶
func NewSingularityRegistry(storePath string, index *index.ImageIndex) (*SingularityRegistry, error)
NewSingularityRegistry initializes and returns SingularityRuntime. Singularity must be installed on the host otherwise it will return an error.
func (*SingularityRegistry) ImageFsInfo ¶
func (s *SingularityRegistry) ImageFsInfo(context.Context, *k8s.ImageFsInfoRequest) (*k8s.ImageFsInfoResponse, error)
ImageFsInfo returns information of the filesystem that is used to store images. Note that local SIF images that were not pulled by CRI are not counted in this stat.
func (*SingularityRegistry) ImageStatus ¶
func (s *SingularityRegistry) ImageStatus(ctx context.Context, req *k8s.ImageStatusRequest) (*k8s.ImageStatusResponse, error)
ImageStatus returns the status of the image. If the image is not present, returns a response with ImageStatusResponse.Image set to nil.
func (*SingularityRegistry) ListImages ¶
func (s *SingularityRegistry) ListImages(ctx context.Context, req *k8s.ListImagesRequest) (*k8s.ListImagesResponse, error)
ListImages lists existing images.
func (*SingularityRegistry) PullImage ¶
func (s *SingularityRegistry) PullImage(ctx context.Context, req *k8s.PullImageRequest) (*k8s.PullImageResponse, error)
PullImage pulls an image with authentication config.
func (*SingularityRegistry) RemoveImage ¶
func (s *SingularityRegistry) RemoveImage(ctx context.Context, req *k8s.RemoveImageRequest) (*k8s.RemoveImageResponse, error)
RemoveImage removes the image. This call is idempotent, and does not return an error if the image has already been removed.
func (*SingularityRegistry) Shutdown ¶
func (s *SingularityRegistry) Shutdown() error
Shutdown should be called whenever SingularityRegistry is no longer used to make sure allocated resources are freed.