image

package
v0.15.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package image provides the ability for Vela to manage and manipulate an image provided for a container.

Usage:

import "github.com/go-vela/worker/internal/image"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPrivilegedImage

func IsPrivilegedImage(image, privileged string) (bool, error)

IsPrivilegedImage digests the provided image with a privileged pattern to see if the image meets the criteria needed to allow a Docker Socket mount.

func Parse

func Parse(_image string) string

Parse digests the provided image into a fully qualified canonical reference. If an error occurs, it will return the provided image.

func ParseWithError

func ParseWithError(_image string) (string, error)

ParseWithError digests the provided image into a fully qualified canonical reference. If an error occurs, it will return the last digested form of the image.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL