installer

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	OmsWorkdir string
	Filename   string
	FileIO     util.FileIO
}

func NewPackage

func NewPackage(omsWorkdir, filename string) *Package

func (*Package) Extract

func (p *Package) Extract(force bool) error

Extract extracts the package tar.gz file into its working directory. If force is true, it will overwrite existing files.

func (*Package) ExtractDependency

func (p *Package) ExtractDependency(file string, force bool) error

ExtractDependency extracts a specific dependency file from the deps.tar.gz archive within the package.

func (*Package) GetDependencyPath

func (p *Package) GetDependencyPath(filename string) string

GetDependencyPath returns the full path to a dependency file within the package's deps directory.

func (*Package) GetWorkDir added in v0.14.0

func (p *Package) GetWorkDir() string

GetWorkDir returns the working directory path for the package by joining the OmsWorkdir and the filename (without the .tar.gz extension).

Jump to

Keyboard shortcuts

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