pkg

package
v0.0.0-...-f22496c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TypeName = "go2chef.step.install.darwin.pkg"

TypeName is the name of this step plugin

Variables

This section is empty.

Functions

func Loader

func Loader(config map[string]interface{}) (go2chef.Step, error)

Loader provides an instantiation function for this step plugin

Types

type Step

type Step struct {
	// StepName defines the name of the step
	StepName string `mapstructure:"name"`
	// PKGMatch specifies a regex to match the filenames in this step's
	// source directory against to find the PKG file
	PKGMatch string `mapstructure:"pkg_match"`
	// DMGMatch specifies a regex to match the filenames in this step's
	// source directory against to find the DMG file
	DMGMatch string `mapstructure:"dmg_match"`
	// InstallerTimeoutSeconds defines the timeout for installation
	InstallerTimeoutSeconds int `mapstructure:"installer_timeout_seconds"`
	// IsDMG enables installation of a pkg inside a DMG
	IsDMG bool `mapstructure:"is_dmg"`
	// contains filtered or unexported fields
}

Step implements Chef installation via macOS

func (*Step) Download

func (s *Step) Download() error

Download fetches resources required for this step's execution

func (*Step) Execute

func (s *Step) Execute() error

Execute performs the installation

func (*Step) Name

func (s *Step) Name() string

Name gets the name of this step instance

func (*Step) SetName

func (s *Step) SetName(str string)

SetName sets the name of this step instance

func (*Step) String

func (s *Step) String() string

func (*Step) Type

func (s *Step) Type() string

Type returns the type of this step instance

Jump to

Keyboard shortcuts

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