tooling

package
v0.0.0-...-fd57926 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

GetVersion returns the current version of the tooling API

func Initialize

func Initialize(options InitOptions) error

Initialize initializes the tooling API with the given options

func SetIntuneCredentials

func SetIntuneCredentials(tenantID, clientID, clientSecret string)

SetIntuneCredentials sets the Intune credentials in the configuration

func SetJamfCredentials

func SetJamfCredentials(url, username, password string)

SetJamfCredentials sets the Jamf credentials in the configuration

func SetMDMProvider

func SetMDMProvider(provider string)

SetMDMProvider sets the MDM provider in the configuration

func SetS3Credentials

func SetS3Credentials(bucket, region, accessKey, secretKey string)

SetS3Credentials sets the S3 credentials in the configuration

func SetStorageProvider

func SetStorageProvider(provider string)

SetStorageProvider sets the storage provider in the configuration

func Shutdown

func Shutdown() error

Shutdown performs any necessary cleanup before the application exits

Types

type InitOptions

type InitOptions struct {
	ConfigFile  string // Path to configuration file
	Debug       bool   // Enable debug logging
	LogFormat   string // Log format: "human" or "json"
	LogFile     string // Path to log file
	SuppressLog bool   // Suppress all logging
}

InitOptions contains options for initializing the tooling API

func DefaultOptions

func DefaultOptions() InitOptions

DefaultOptions returns the default initialization options

type WorkflowResult

type WorkflowResult struct {
	Success      bool                   // Whether the workflow completed successfully
	ErrorMessage string                 // Error message if any
	Variables    map[string]interface{} // Final state of variables after workflow execution
}

WorkflowResult contains the results of a workflow execution

func ExecuteWorkflow

func ExecuteWorkflow(workflowFile string) (*WorkflowResult, error)

ExecuteWorkflow executes a workflow defined in a file

func ExecuteWorkflowFromYAML

func ExecuteWorkflowFromYAML(workflowYAML string) (*WorkflowResult, error)

ExecuteWorkflowFromYAML executes a workflow defined in a YAML string

Jump to

Keyboard shortcuts

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