vm

package
v0.50.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArtifact

func NewArtifact(target string, c cache.ArtifactCache, w Walker, opt artifact.Option) (artifact.Artifact, error)

Types

type AMI

type AMI struct {
	*EBS
	// contains filtered or unexported fields
}

func (*AMI) Inspect

func (a *AMI) Inspect(ctx context.Context) (types.ArtifactReference, error)

type EBS

type EBS struct {
	Storage
	// contains filtered or unexported fields
}

EBS represents an artifact for AWS EBS snapshots

func (*EBS) Clean

func (a *EBS) Clean(_ types.ArtifactReference) error

func (*EBS) Inspect

func (a *EBS) Inspect(ctx context.Context) (types.ArtifactReference, error)

func (*EBS) SetEBS

func (a *EBS) SetEBS(ebs ebsfile.EBSAPI)

type ImageFile

type ImageFile struct {
	Storage
	// contains filtered or unexported fields
}

ImageFile represents an local VM image file

func (*ImageFile) Clean

func (a *ImageFile) Clean(reference types.ArtifactReference) error

func (*ImageFile) Inspect

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func (*Storage) Analyze

func (a *Storage) Analyze(ctx context.Context, r *io.SectionReader) (types.BlobInfo, error)

type Type

type Type string
const (
	TypeAMI  Type = "ami"
	TypeEBS  Type = "ebs"
	TypeFile Type = "file"
)

func (Type) Prefix

func (t Type) Prefix() string

type Walker added in v0.48.0

type Walker interface {
	Walk(*io.SectionReader, string, walker.WalkFunc) error
}

Jump to

Keyboard shortcuts

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