package integration
import "github.com/containerd/cri/integration"
Index ¶
- func ContainerConfig(name, image string, opts ...ContainerOpts) *runtime.ContainerConfig
- func Eventually(f CheckFunc, period, timeout time.Duration) error
- func PodSandboxConfig(name, ns string, opts ...PodSandboxOpts) *runtime.PodSandboxConfig
- type CheckFunc
- type ContainerOpts
- type PodSandboxOpts
Functions ¶
func ContainerConfig ¶
func ContainerConfig(name, image string, opts ...ContainerOpts) *runtime.ContainerConfig
ContainerConfig creates a container config given a name and image name and additional container config options
func Eventually ¶
Eventually waits for f to return true, it checks every period, and returns error if timeout exceeds. If f returns error, Eventually will return the same error immediately.
func PodSandboxConfig ¶
func PodSandboxConfig(name, ns string, opts ...PodSandboxOpts) *runtime.PodSandboxConfig
PodSandboxConfig generates a pod sandbox config for test.
Types ¶
type CheckFunc ¶
CheckFunc is the function used to check a condition is true/false.
type ContainerOpts ¶
type ContainerOpts func(*runtime.ContainerConfig)
ContainerOpts to set any specific attribute like labels, annotations, metadata etc
func WithTestAnnotations ¶
func WithTestAnnotations() ContainerOpts
func WithTestLabels ¶
func WithTestLabels() ContainerOpts
type PodSandboxOpts ¶
type PodSandboxOpts func(*runtime.PodSandboxConfig)
Opts sets specific information in pod sandbox config.
Source Files ¶
- Version
- v1.0.0-alpha.0
- Published
- Sep 29, 2017
- Platform
- darwin/amd64
- Imports
- 7 packages
- Last checked
- 4 hours ago –
Tools for package owners.