image

package
v0.0.0-...-8b81c9d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequiredUnikernelAnnotations

func RequiredUnikernelAnnotations() []string

Types

type ArchOperation

type ArchOperation struct {
	Arch string
}

ArchOperation holds the information of the target architecture

func (ArchOperation) Info

func (o ArchOperation) Info() string

func (ArchOperation) Line

func (o ArchOperation) Line() string

func (ArchOperation) Type

func (o ArchOperation) Type() string

func (ArchOperation) UpdateImage

func (o ArchOperation) UpdateImage(image v1.Image) (v1.Image, error)

type BimaImage

type BimaImage struct {
	Image *v1.Image
	// contains filtered or unexported fields
}

func NewBimaImage

func NewBimaImage() (*BimaImage, error)

func (*BimaImage) AddCmd

func (i *BimaImage) AddCmd() error

func (*BimaImage) AddUruncJSON

func (i *BimaImage) AddUruncJSON() error

func (*BimaImage) ApplyOperation

func (i *BimaImage) ApplyOperation(operation BimaOperation) error

func (*BimaImage) SetArchitecture

func (i *BimaImage) SetArchitecture() error

func (*BimaImage) Validate

func (i *BimaImage) Validate() error

type BimaOperation

type BimaOperation interface {
	Line() string
	Info() string
	Type() string
	UpdateImage(v1.Image) (v1.Image, error)
}

type CopyOperation

type CopyOperation struct {
	Source      string
	Destination string
	// contains filtered or unexported fields
}

CopyOperation hols the information needed to create a new layer with a copied file or directory.

func (CopyOperation) Info

func (o CopyOperation) Info() string

func (CopyOperation) Line

func (o CopyOperation) Line() string

func (CopyOperation) Type

func (o CopyOperation) Type() string

func (CopyOperation) UpdateImage

func (o CopyOperation) UpdateImage(image v1.Image) (v1.Image, error)

type InstructionLine

type InstructionLine string

InstructionLine represents a single line from the Containerfile

func NewInstructionLine

func NewInstructionLine(line string) InstructionLine

func (InstructionLine) ToBimaOperation

func (i InstructionLine) ToBimaOperation() (BimaOperation, error)

ToBimaOperation creates a new BimaOperation based on the content of a single instruction line.

type LabelOperation

type LabelOperation struct {
	Key   string
	Value string
	// contains filtered or unexported fields
}

LabelOperation hols the information needed to create a new layer with an annotation.

func (LabelOperation) Info

func (o LabelOperation) Info() string

func (LabelOperation) Line

func (o LabelOperation) Line() string

func (LabelOperation) Type

func (o LabelOperation) Type() string

func (LabelOperation) UpdateImage

func (o LabelOperation) UpdateImage(image v1.Image) (v1.Image, error)

Jump to

Keyboard shortcuts

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