vm

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 26 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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) (artifact.Reference, 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(_ artifact.Reference) error

func (*EBS) Inspect

func (a *EBS) Inspect(ctx context.Context) (artifact.Reference, 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 artifact.Reference) error

func (*ImageFile) Inspect

func (a *ImageFile) Inspect(ctx context.Context) (artifact.Reference, error)

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.Option, walker.WalkFunc) error
}

Jump to

Keyboard shortcuts

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