sharedConstructors

package
v0.26.0-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructBoolChoiceSettingInstance

func ConstructBoolChoiceSettingInstance(settingDefinitionId string, value bool, settingInstanceTemplateId string, settingValueTemplateId string) models.DeviceManagementConfigurationSettingable

ConstructBoolChoiceSettingInstance creates a boolean setting using the choice setting format.

func ConstructChoiceSettingCollectionInstance

func ConstructChoiceSettingCollectionInstance(
	settingDefinitionId string,
	settingInstanceTemplateId string,
	choiceValues []models.DeviceManagementConfigurationChoiceSettingValueable,
) models.DeviceManagementConfigurationSettingable

ConstructChoiceSettingCollectionInstance creates a choice setting collection.

func ConstructChoiceSettingInstance

func ConstructChoiceSettingInstance(
	settingDefinitionId string,
	value string,
	settingInstanceTemplateId string,
	settingValueTemplateId string,
) models.DeviceManagementConfigurationSettingable

ConstructChoiceSettingInstance creates a choice setting.

func ConstructChoiceSettingValue

func ConstructChoiceSettingValue(
	value string,
	settingValueTemplateId string,
	children []models.DeviceManagementConfigurationSettingInstanceable,
) models.DeviceManagementConfigurationChoiceSettingValueable

ConstructChoiceSettingValue creates a choice setting value.

func ConstructChoiceSettingWithChildren

func ConstructChoiceSettingWithChildren(
	settingDefinitionId string,
	value string,
	settingInstanceTemplateId string,
	settingValueTemplateId string,
	children []models.DeviceManagementConfigurationSettingInstanceable,
) models.DeviceManagementConfigurationSettingable

ConstructChoiceSettingWithChildren creates a choice setting with children settings.

func ConstructGroupSettingCollectionInstance

func ConstructGroupSettingCollectionInstance(
	settingDefinitionId string,
	settingInstanceTemplateId string,
	groupValues []models.DeviceManagementConfigurationGroupSettingValueable,
) models.DeviceManagementConfigurationSettingable

ConstructGroupSettingCollectionInstance creates a group setting collection with child settings.

func ConstructGroupSettingValue

ConstructGroupSettingValue creates a group setting value with child settings.

func ConstructImage

ConstructImage handles the image processing, including format detection and conversion to PNG Returns a MimeContent object and any temporary files that need to be cleaned up

func ConstructIntCollectionSettingInstance

func ConstructIntCollectionSettingInstance(
	settingDefinitionId string,
	values []int64,
	settingInstanceTemplateId string,
) models.DeviceManagementConfigurationSettingable

ConstructIntCollectionSettingInstance creates a collection of integer values.

func ConstructIntSimpleSettingInstance

func ConstructIntSimpleSettingInstance(
	settingDefinitionId string,
	value int64,
	settingInstanceTemplateId string,
	settingValueTemplateId string,
) models.DeviceManagementConfigurationSettingable

ConstructIntSimpleSettingInstance creates an integer setting.

func ConstructSecretSimpleSettingInstance

func ConstructSecretSimpleSettingInstance(
	settingDefinitionId string,
	value string,
	valueState string,
	settingInstanceTemplateId string,
	settingValueTemplateId string,
) models.DeviceManagementConfigurationSettingable

ConstructSecretSimpleSettingInstance creates a secret string setting.

func ConstructSettingsCatalogSettings

func ConstructSettingsCatalogSettings(ctx context.Context, settingsJSON types.String) []graphmodels.DeviceManagementConfigurationSettingable

ConstructSettingsCatalogSettings constructs a collection of settings catalog settings from a JSON string it supports simple, choice, simpleCollection, choiceCollection, and groupCollection settings and nested settings within choice and group collections recursively.

func ConstructSimpleSettingCollectionInstance

func ConstructSimpleSettingCollectionInstance(
	settingDefinitionId string,
	values []string,
	settingInstanceTemplateId string,
) models.DeviceManagementConfigurationSettingable

ConstructSimpleSettingCollectionInstance creates a collection setting for string values.

func ConstructSimpleSettingInstance

func ConstructSimpleSettingInstance(
	settingDefinitionId string,
	settingValue models.DeviceManagementConfigurationSimpleSettingValueable,
	settingInstanceTemplateId string,
) models.DeviceManagementConfigurationSettingable

ConstructSimpleSettingInstance creates a generic simple setting with the provided simple setting value.

func ConstructStringSimpleSettingInstance

func ConstructStringSimpleSettingInstance(
	settingDefinitionId string,
	value string,
	settingInstanceTemplateId string,
	settingValueTemplateId string,
) models.DeviceManagementConfigurationSettingable

ConstructStringSimpleSettingInstance creates a simple string setting.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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