Help us shape the future of Go! Take the 2026 Go Developer Survey

patch_internal_source

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package patch_internal_source implements the read-only jamfplatform_pro_patch_internal_source data source backed by the Jamf ProClassic patch internal sources API. Internal sources are Jamf-managed (the built-in "Jamf" definition source) and not user-creatable, so this package ships a data source only — no resource or list resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPatchInternalSourceDataSource

func NewPatchInternalSourceDataSource() datasource.DataSource

NewPatchInternalSourceDataSource returns a new instance of PatchInternalSourceDataSource.

Types

type PatchInternalSourceDataSource

type PatchInternalSourceDataSource struct {
	// contains filtered or unexported fields
}

PatchInternalSourceDataSource implements the Terraform data source for Jamf Pro patch internal sources. Lookup is by ID OR by name — exactly one must be supplied.

func (*PatchInternalSourceDataSource) ConfigValidators

ConfigValidators enforces that exactly one of id / name is supplied.

func (*PatchInternalSourceDataSource) Configure

Configure wires the Jamf ProClassic client into the data source via the shared providerdata.ConfigureProClassic helper.

func (*PatchInternalSourceDataSource) Metadata

Metadata sets the data source type name for the Terraform provider.

func (*PatchInternalSourceDataSource) Read

Read fetches a patch internal source by ID or by name, then its published available-titles catalog, and populates Terraform state.

func (*PatchInternalSourceDataSource) Schema

Schema returns the data source schema. id and name are the mutually-exclusive selectors (Optional+Computed); the remaining attributes are populated from the SDK response.

type PatchInternalSourceDataSourceModel

type PatchInternalSourceDataSourceModel struct {
	ID              types.String             `tfsdk:"id"`
	Name            types.String             `tfsdk:"name"`
	Enabled         types.Bool               `tfsdk:"enabled"`
	Endpoint        types.String             `tfsdk:"endpoint"`
	AvailableTitles []availabletitles.Model  `tfsdk:"available_titles"`
	Timeouts        datasourceTimeouts.Value `tfsdk:"timeouts"`
}

PatchInternalSourceDataSourceModel represents the Terraform data source model for a Jamf Pro patch internal source. Internal sources are Jamf-managed (the built-in "Jamf" source) and not user-creatable, so there is no resource model. Either id or name must be supplied (enforced by ExactlyOneOf at config validation); the remaining attributes are populated from the SDK response.

Jump to

Keyboard shortcuts

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