catalog

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(cfg config.Configuration) map[int]map[string]Item

Get returns a map of `Item` from the catalog

Types

type FileCheck

type FileCheck struct {
	Path        string `yaml:"path"`
	Version     string `yaml:"version"`
	ProductName string `yaml:"product_name"`
	Hash        string `yaml:"hash"`
}

FileCheck holds information about checking via a file

type InstallCheck

type InstallCheck struct {
	File     []FileCheck `yaml:"file"`
	Script   string      `yaml:"script"`
	Registry RegCheck    `yaml:"registry"`
}

InstallCheck holds information about how to check the status of a catalog item

type InstallerItem

type InstallerItem struct {
	Type      string   `yaml:"type"`
	Location  string   `yaml:"location"`
	Hash      string   `yaml:"hash"`
	Arguments []string `yaml:"arguments"`
}

InstallerItem holds information about how to install a catalog item

type Item

type Item struct {
	Dependencies []string      `yaml:"dependencies"`
	DisplayName  string        `yaml:"display_name"`
	Check        InstallCheck  `yaml:"check"`
	Installer    InstallerItem `yaml:"installer"`
	Uninstaller  InstallerItem `yaml:"uninstaller"`
	Version      string        `yaml:"version"`
	BlockingApps []string      `yaml:"blocking_apps"`
	PreScript    string        `yaml:"preinstall_script"`
	PostScript   string        `yaml:"postinstall_script"`
}

Item contains an individual entry from the catalog

type RegCheck

type RegCheck struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

RegCheck holds information about checking via registry

Jump to

Keyboard shortcuts

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