Documentation
¶
Index ¶
- Variables
- func CvmfsFullRun(ctx context.Context, b *testing.B, testName string, ...)
- func GetCommitHash() (string, error)
- func OverlayFSFullRun(ctx context.Context, b *testing.B, testName string, ...)
- func ParseFileAccesses(imageName string) error
- func PullImageFromRegistry(ctx context.Context, b *testing.B, imageRef string)
- func SociFullRun(ctx context.Context, b *testing.B, testName string, ...)
- func SociRPullPullImage(ctx context.Context, b *testing.B, imageRef string, indexDigest string)
- func StargzFullRun(ctx context.Context, b *testing.B, testName string, ...)
- func WriteDefaultConfig()
- type BaseOperation
- type CvmfsContainerdProcess
- type CvmfsProcess
- type FileAccessPatterns
- type ImageDescriptor
- type ImageOptions
- type Operation
- type SociContainerdProcess
- func (proc *SociContainerdProcess) CreateSociContainer(ctx context.Context, image containerd.Image, imageDescriptor ImageDescriptor) (containerd.Container, func(), error)
- func (proc *SociContainerdProcess) SociRPullImageFromRegistry(ctx context.Context, imageRef string, sociIndexDigest string) (containerd.Image, error)
- type SociLog
- type SociProcess
- type StargzContainerdProcess
- type StargzProcess
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FileAccessDir = outputDir + "file_access_logs/"
)
Functions ¶
func CvmfsFullRun ¶
func GetCommitHash ¶
func OverlayFSFullRun ¶
func ParseFileAccesses ¶
func PullImageFromRegistry ¶
func SociFullRun ¶
func SociRPullPullImage ¶
func StargzFullRun ¶
func WriteDefaultConfig ¶
func WriteDefaultConfig()
Types ¶
type BaseOperation ¶
type CvmfsContainerdProcess ¶
type CvmfsContainerdProcess struct {
*framework.ContainerdProcess
}
func (*CvmfsContainerdProcess) CvmfsPullImageFromRegistry ¶
func (proc *CvmfsContainerdProcess) CvmfsPullImageFromRegistry( ctx context.Context, imageRef string) (containerd.Image, error)
type CvmfsProcess ¶
type CvmfsProcess struct {
// contains filtered or unexported fields
}
func GetCvmfsProcess ¶
func GetCvmfsProcess(cvmfsBinary string) (*CvmfsProcess, error)
func StartCvmfs ¶
func (*CvmfsProcess) StopProcess ¶
func (proc *CvmfsProcess) StopProcess()
type FileAccessPatterns ¶
type ImageDescriptor ¶
type ImageDescriptor struct { ShortName string `json:"short_name"` ImageRef string `json:"image_ref"` SociIndexDigest string `json:"soci_index_digest"` ReadyLine string `json:"ready_line"` Command string `json:"command"` TimeoutSec int64 `json:"timeout_sec"` ImageOptions ImageOptions `json:"options"` Mount mount.Mount `json:"mount"` }
func GetDefaultWorkloads ¶
func GetDefaultWorkloads() []ImageDescriptor
func GetImageList ¶
func GetImageList(file string) ([]ImageDescriptor, error)
func GetImageListFromJSON ¶
func GetImageListFromJSON(r io.Reader) ([]ImageDescriptor, error)
func (*ImageDescriptor) ContainerOpts ¶
func (i *ImageDescriptor) ContainerOpts(image containerd.Image, o ...containerd.NewContainerOpts) []containerd.NewContainerOpts
ContainerOpts creates a set of NewContainerOpts from an ImageDescriptor and a containerd.Image The options can be used directly when launching a container
func (*ImageDescriptor) Timeout ¶
func (i *ImageDescriptor) Timeout() time.Duration
type ImageOptions ¶
type ImageOptions struct { // Net indicicates the container's network mode. If set to "host" then the container will have host networking, otherwise no networking. Net string `json:"net"` // Mounts are any mounts needed by the container Mounts []runtimespec.Mount `json:"mounts"` // Gpu is whether the container needs GPUs. If true, all GPUs are mounted in the container Gpu bool `json:"gpu"` // Env is any environment variables needed by the containerd Env []string `json:"env"` // ShmSize is the size of /dev/shm to be used inside the container ShmSize int64 `json:"shm_size"` }
ImageOptions contains image-specific options needed to run the tests
type SociContainerdProcess ¶
type SociContainerdProcess struct {
*framework.ContainerdProcess
}
func (*SociContainerdProcess) CreateSociContainer ¶
func (proc *SociContainerdProcess) CreateSociContainer( ctx context.Context, image containerd.Image, imageDescriptor ImageDescriptor) (containerd.Container, func(), error)
func (*SociContainerdProcess) SociRPullImageFromRegistry ¶
func (proc *SociContainerdProcess) SociRPullImageFromRegistry( ctx context.Context, imageRef string, sociIndexDigest string) (containerd.Image, error)
type SociProcess ¶
type SociProcess struct {
// contains filtered or unexported fields
}
func (*SociProcess) StopProcess ¶
func (proc *SociProcess) StopProcess()
type StargzContainerdProcess ¶
type StargzContainerdProcess struct {
*framework.ContainerdProcess
}
func (*StargzContainerdProcess) StargzRpullImageFromRegistry ¶
func (proc *StargzContainerdProcess) StargzRpullImageFromRegistry( ctx context.Context, imageRef string) (containerd.Image, error)
type StargzProcess ¶
type StargzProcess struct {
// contains filtered or unexported fields
}
func StartStargz ¶
func (*StargzProcess) StopProcess ¶
func (proc *StargzProcess) StopProcess()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.