Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines a basic struct used by the provider to store it's API config, token & expiry time
type JamfAPIAuthToken ¶
type JamfAPIAuthToken struct { AccessToken string `json:"access_token"` Scope string `json:"scope"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` }
JamfAPIAuthToken defines the JSON format returned from /api/oauth/token (Jamf API)
type JamfClassicComputer ¶
type JamfClassicComputer struct { Computer struct { General struct { UDID string `json:"udid"` Name string `json:"name"` SerialNumber string `json:"serial_number"` } `json:"general"` Location struct { Username string `json:"username"` RealName string `json:"realname"` EmailAddress string `json:"email_address"` Position string `json:"position"` Department string `json:"department"` } `json:"location"` GroupsAccounts struct { ComputerGroupMemberships []string `json:"computer_group_memberships"` } `json:"groups_accounts"` } `json:"computer"` }
JamfClassicComputer defines the JSON format returned from /JSSResource/computers/serialnumber/%s (Jamf API)
type JamfClassicMobileDevice ¶
type JamfClassicMobileDevice struct { MobileDevice struct { General struct { UDID string `json:"udid"` Name string `json:"device_name"` SerialNumber string `json:"serial_number"` } `json:"general"` Location struct { Username string `json:"username"` RealName string `json:"realname"` EmailAddress string `json:"email_address"` Position string `json:"position"` Department string `json:"department"` } `json:"location"` MobileDeviceGroups []struct { ID int `json:"id"` Name string `json:"name"` } `json:"mobile_device_groups"` } `json:"mobile_device"` }
JamfClassicMobileDevice defines the JSON format returned from /JSSResource/mobiledevices/serialnumber/%s (Jamf API)
type Provider ¶
type Provider struct { }
func (Provider) Bootstrap ¶
Bootstrap is a public function that is implemented as part of the Provider interface It is responsible for setting up and testing the provider then letting the main package know about any errors or issues that have stopped a provider bootstrapping correctly
func (Provider) Handler ¶
func (p Provider) Handler(handlerMode string, stepInputData shared.StepAttestationRequestData) (shared.StepResponseData, error)
Handler is a public function that is implemented as part of the Provider interface It is responsible for handling an individual webhook request and returning StepResponseData