Documentation ¶
Index ¶
- func GenerateContainerConfig(opts ...CRIOOpts) *pb.ContainerConfig
- func GetNewCRIRuntime(config libruntime.RuntimeConfig, startServer bool) (libruntime.Runtime, error)
- func GetNewImageClient(socket string, timeout time.Duration) (*pb.ImageServiceClient, error)
- func GetNewRuntimeClient(socket string, timeout time.Duration) (*pb.RuntimeServiceClient, error)
- type CRIOOpts
- type CRIRuntime
- func (cr *CRIRuntime) Create(ctx context.Context, containerName string, imageName string, ...) (*libruntime.Container, error)
- func (cr *CRIRuntime) CreateSandbox(ctx context.Context, podName, podID, configFilePath string) (string, error)
- func (cr *CRIRuntime) Delete(ctx context.Context, ctr *libruntime.Container) error
- func (cr *CRIRuntime) Exec(context.Context, libruntime.Container, []string) error
- func (cr *CRIRuntime) GetContainer(context.Context, string) (*libruntime.Container, error)
- func (cr *CRIRuntime) Pull(ctx context.Context, imageName string) (libruntime.Image, error)
- func (cr *CRIRuntime) RemoveImage(ctx context.Context, imageName string) error
- func (cr *CRIRuntime) RemovePodSandbox(ctx context.Context, ID string) error
- func (cr *CRIRuntime) Run(ctx context.Context, containerName string, imageName string, ...) (<-chan interface{}, *libruntime.Container, error)
- func (cr *CRIRuntime) Runnable(context.Context, *libruntime.Container) error
- func (cr *CRIRuntime) Start(ctx context.Context, ctr *libruntime.Container) error
- func (cr *CRIRuntime) Stop(ctx context.Context, ctr *libruntime.Container) error
- func (cr *CRIRuntime) StopPodSandbox(ctx context.Context, ID string) error
- func (cr *CRIRuntime) Version(ctx context.Context) string
- func (cr *CRIRuntime) Wait(context.Context, *libruntime.Container) (<-chan interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateContainerConfig ¶
func GenerateContainerConfig(opts ...CRIOOpts) *pb.ContainerConfig
GenerateContainerConfig returns crio compaitable ContainerConfig
func GetNewCRIRuntime ¶
func GetNewCRIRuntime(config libruntime.RuntimeConfig, startServer bool) (libruntime.Runtime, error)
func GetNewImageClient ¶
func GetNewRuntimeClient ¶
Types ¶
type CRIOOpts ¶
type CRIOOpts func(s *pb.ContainerConfig) error
CRIOOpts sets spec specific information to a newly generated OCI spec
type CRIRuntime ¶
type CRIRuntime struct { RuntimeClient *pb.RuntimeServiceClient ImageClient *pb.ImageServiceClient RuntimeServer *pb.RuntimeServiceServer }
func (*CRIRuntime) Create ¶
func (cr *CRIRuntime) Create(ctx context.Context, containerName string, imageName string, OCISpecs *runtimespecs.Spec) (*libruntime.Container, error)
func (*CRIRuntime) CreateSandbox ¶
func (*CRIRuntime) Delete ¶
func (cr *CRIRuntime) Delete(ctx context.Context, ctr *libruntime.Container) error
func (*CRIRuntime) Exec ¶
func (cr *CRIRuntime) Exec(context.Context, libruntime.Container, []string) error
func (*CRIRuntime) GetContainer ¶
func (cr *CRIRuntime) GetContainer(context.Context, string) (*libruntime.Container, error)
func (*CRIRuntime) Pull ¶
func (cr *CRIRuntime) Pull(ctx context.Context, imageName string) (libruntime.Image, error)
func (*CRIRuntime) RemoveImage ¶
func (cr *CRIRuntime) RemoveImage(ctx context.Context, imageName string) error
func (*CRIRuntime) RemovePodSandbox ¶
func (cr *CRIRuntime) RemovePodSandbox(ctx context.Context, ID string) error
func (*CRIRuntime) Run ¶
func (cr *CRIRuntime) Run(ctx context.Context, containerName string, imageName string, OCISpecs *runtimespecs.Spec) (<-chan interface{}, *libruntime.Container, error)
func (*CRIRuntime) Runnable ¶
func (cr *CRIRuntime) Runnable(context.Context, *libruntime.Container) error
func (*CRIRuntime) Start ¶
func (cr *CRIRuntime) Start(ctx context.Context, ctr *libruntime.Container) error
func (*CRIRuntime) Stop ¶
func (cr *CRIRuntime) Stop(ctx context.Context, ctr *libruntime.Container) error
func (*CRIRuntime) StopPodSandbox ¶
func (cr *CRIRuntime) StopPodSandbox(ctx context.Context, ID string) error
func (*CRIRuntime) Wait ¶
func (cr *CRIRuntime) Wait(context.Context, *libruntime.Container) (<-chan interface{}, error)
Click to show internal directories.
Click to hide internal directories.