vm

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArtifact

func NewArtifact(target string, c cache.ArtifactCache, 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

Jump to

Keyboard shortcuts

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