packages

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

packages_constructor.go

packages_crud.go

packages_data_source.go

packages_data_handling.go

packages_helpers.go

packages_resource.go

packages_state.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr added in v0.1.0

func BoolPtr(b bool) *bool

BoolPtr is a helper function to create a pointer to a bool.

func DataSourceJamfProPackages

func DataSourceJamfProPackages() *schema.Resource

DataSourceJamfProPackages provides information about a specific Jamf Pro site by its ID or Name.

func DataSourceJamfProPackagesRead

func DataSourceJamfProPackagesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

DataSourceJamfProPackagesRead fetches the details of a specific Jamf Pro package from Jamf Pro using either its unique Name or its Id. The function prioritizes the 'name' attribute over the 'id' attribute for fetching details. If neither 'name' nor 'id' is provided, it returns an error. Once the details are fetched, they are set in the data source's state.

Parameters: - ctx: The context within which the function is called. It's used for timeouts and cancellation. - d: The current state of the data source. - meta: The meta object that can be used to retrieve the API client connection.

Returns: - diag.Diagnostics: Returns any diagnostics (errors or warnings) encountered during the function's execution.

func ResourceJamfProPackages

func ResourceJamfProPackages() *schema.Resource

ResourceJamfProPackages defines the schema and CRUD operations for managing Jamf Pro Packages in Terraform.

Types

This section is empty.

Jump to

Keyboard shortcuts

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