piquant

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Storage/versioning and retrieval of PIQUANT configuration files and the currently selected PIQUANT pod version to be run

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPiquantConfigVersions

func GetPiquantConfigVersions(svcs *services.APIServices, configName string) []string

GetPiquantConfigVersions - retrieves all available versions of a given named PIQUANT config eg. Returns all versions for config called PIXL or Breadboard...

Types

type PiquantConfig

type PiquantConfig struct {
	Description         string `json:"description"`
	ConfigFile          string `json:"configFile"`
	OpticEfficiencyFile string `json:"opticEfficiencyFile"`
	CalibrationFile     string `json:"calibrationFile"`
	StandardsFile       string `json:"standardsFile"`
}

func GetPIQUANTConfig

func GetPIQUANTConfig(svcs *services.APIServices, configName string, version string) (PiquantConfig, error)

type PiquantVersionConfig

type PiquantVersionConfig struct {
	Version            string            `json:"version"`
	ChangedUnixTimeSec int64             `json:"changedUnixTimeSec"`
	Creator            pixlUser.UserInfo `json:"creator"`
}

Version config item

func GetPiquantVersion

func GetPiquantVersion(svcs *services.APIServices) (PiquantVersionConfig, error)

GetPiquantVersion - retrieves currently active PIQUANT version NOTE: If this is not in S3, we read the API config value, but this allows users to override it with S3

Jump to

Keyboard shortcuts

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