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

client

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProClient added in v0.4.0

func NewProClient(baseURL, clientID, clientSecret string, scope Scope) *sdkpro.Client

NewProClient builds a Jamf Platform "pro" SDK client for the federated Jamf Pro surface (e.g. package downloads via the Jamf Cloud Distribution Service).

The pro endpoints are published at both environment and tenant scope, so either works. Organization scope does not reach them at all — callers gate on platform.Scope.ReachesPro before getting here.

func VerifyAuth

func VerifyAuth(baseURL, clientID, clientSecret string, scope Scope) error

VerifyAuth creates a Jamf Platform SDK client and validates the credentials using the SDK's built-in credential validation.

Types

type Scope added in v0.6.0

type Scope struct {
	EnvironmentID string
	TenantID      string
}

Scope carries the API integration's scope to the SDK. It mirrors platform.Scope without importing it, so the client package stays a leaf. Exactly one of the two IDs is set; both empty means organization scope, where the gateway resolves the organization from the access token and no scope header is sent at all.

Jump to

Keyboard shortcuts

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