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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(auth *AuthConfig) (*jamfpro.Client, error)

New creates a new Jamf Pro API client using the provided auth config.

func TokenRefreshBufferPeriod

func TokenRefreshBufferPeriod() int

TokenRefreshBufferPeriod returns the token refresh buffer period (in seconds) determined during the most recent OAuth2 client initialization. Returns 0 if no probing was performed.

func VerifyAuth

func VerifyAuth(auth *AuthConfig) (*jamfpro.Client, error)

VerifyAuth creates a client and makes a lightweight API call to verify that the credentials are valid. Returns the client on success.

Types

type AuthConfig

type AuthConfig struct {
	URL          string
	AuthMethod   string // "basic" or "oauth2"
	Username     string // basic auth
	Password     string // basic auth
	ClientID     string // oauth2
	ClientSecret string // oauth2
}

AuthConfig holds the authentication configuration for the Jamf Pro client.

Jump to

Keyboard shortcuts

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