adapters

package
v0.0.0-...-2f6912c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Darwin

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

func NewDarwinAdapter

func NewDarwinAdapter(exec utilsexec.Interface) Darwin

func (Darwin) InstallPackage

func (d Darwin) InstallPackage(packageName string)

func (Darwin) UpdatePackageList

func (d Darwin) UpdatePackageList(packageManager string)

type Linux

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

func NewLinuxAdapter

func NewLinuxAdapter(exec utilsexec.Interface) Linux

func (Linux) InstallPackage

func (l Linux) InstallPackage(packageName string)

func (Linux) UpdatePackageList

func (l Linux) UpdatePackageList(packageManager string)

type PlatformAdapterInterface

type PlatformAdapterInterface interface {
	InstallPackage(packageName string)
	UpdatePackageList(packageManager string)
}

type WindowsAdapter

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

func NewWindowsAdapter

func NewWindowsAdapter(exec utilsexec.Interface) WindowsAdapter

func (WindowsAdapter) InstallPackage

func (w WindowsAdapter) InstallPackage(packageName string)

func (WindowsAdapter) UpdatePackageList

func (w WindowsAdapter) UpdatePackageList(packageManager string)

Jump to

Keyboard shortcuts

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