Documentation
¶
Index ¶
- func ConvToCRIImage(image string) string
- type Runtime
- type RuntimeImpl
- func (runtime *RuntimeImpl) GetImageDigest(ctx context.Context, image string) (string, error)
- func (runtime *RuntimeImpl) PullImage(ctx context.Context, image string, authConfig *runtimeapi.AuthConfig, ...) error
- func (runtime *RuntimeImpl) PullImages(ctx context.Context, images []string, authConfig *runtimeapi.AuthConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvToCRIImage ¶
Types ¶
type Runtime ¶
type Runtime interface {
// PullImages pulls images. If authentication is required, currently pulled images
// only support one authentication configuration.
PullImages(ctx context.Context, images []string, authConfig *runtimeapi.AuthConfig) error
// PullImage pulls the specified image.
PullImage(ctx context.Context, image string, authConfig *runtimeapi.AuthConfig, sandboxConfig *runtimeapi.PodSandboxConfig) error
// GetImageDigest returns the digest of the specified image.
GetImageDigest(ctx context.Context, image string) (string, error)
}
type RuntimeImpl ¶
type RuntimeImpl struct {
// contains filtered or unexported fields
}
func NewImageRuntime ¶
func NewImageRuntime(endpoint string, timeout time.Duration) (*RuntimeImpl, error)
func (*RuntimeImpl) GetImageDigest ¶
func (*RuntimeImpl) PullImage ¶
func (runtime *RuntimeImpl) PullImage( ctx context.Context, image string, authConfig *runtimeapi.AuthConfig, sandboxConfig *runtimeapi.PodSandboxConfig, ) error
func (*RuntimeImpl) PullImages ¶
func (runtime *RuntimeImpl) PullImages( ctx context.Context, images []string, authConfig *runtimeapi.AuthConfig, ) error
Click to show internal directories.
Click to hide internal directories.