Documentation ¶
Index ¶
- Variables
- type ContainerConfig
- type Image
- type Session
- func (session *Session) BuildRecipe(ctx context.Context, recipe recipes.Recipe, tag string, imagePrefix string, ...) (reference.ImageRef, error)
- func (session *Session) Close() error
- func (session *Session) ExtractImage(ctx context.Context, imageRef reference.ImageRef, destination string) error
- func (session *Session) GetImages(ctx context.Context) ([]Image, error)
- func (session *Session) Pull(ctx context.Context, imageRef reference.ImageRef, resolver remotes.Resolver) error
- func (session *Session) Push(ctx context.Context, imageRef reference.ImageRef, resolver remotes.Resolver) error
- func (session *Session) RemoveImage(ctx context.Context, image string) error
- func (session *Session) RunContainer(ctx context.Context, config ContainerConfig) error
- func (session *Session) TagImage(ctx context.Context, source, destination reference.ImageRef) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// DefaultContainerdSocketLocation The location to the containerd socket.
DefaultContainerdSocketLocation = "/var/run/containerd/containerd.sock"
)
Functions ¶
This section is empty.
Types ¶
type ContainerConfig ¶
type ContainerConfig struct {
// contains filtered or unexported fields
}
ContainerConfig configuration about how to run the container
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session An object that represent a session to a containerd runtime.
func NewSession ¶
NewSession creates a new session
func (*Session) BuildRecipe ¶
func (session *Session) BuildRecipe(ctx context.Context, recipe recipes.Recipe, tag string, imagePrefix string, env []string) (reference.ImageRef, error)
BuildRecipe Builds a recipe.
func (*Session) ExtractImage ¶
func (session *Session) ExtractImage(ctx context.Context, imageRef reference.ImageRef, destination string) error
ExtractImage Extracts an image (with tag) to a specified directory
func (*Session) Pull ¶
func (session *Session) Pull(ctx context.Context, imageRef reference.ImageRef, resolver remotes.Resolver) error
Pull Pulls an image locally.
func (*Session) Push ¶
func (session *Session) Push(ctx context.Context, imageRef reference.ImageRef, resolver remotes.Resolver) error
Push Push an image remotely.
func (*Session) RemoveImage ¶
RemoveImage Removes an image locally.
func (*Session) RunContainer ¶
func (session *Session) RunContainer(ctx context.Context, config ContainerConfig) error
RunContainer Runs a container
Source Files ¶
Click to show internal directories.
Click to hide internal directories.