Documentation
¶
Index ¶
- type Client
- func (c *Client) DoBinaryRequest(method, url string, body interface{}, headers map[string]string) ([]byte, error)
- func (c *Client) DoPackageUploadRequest(api, pkgName, pkgPath string, objID int) error
- func (c *Client) DoRawRequest(api string, params *url.Values) (string, error)
- func (c *Client) DoRequest(method, api string, reqbody interface{}, params *url.Values, out interface{}) error
- func (c *Client) DoRequestDebug(method, api string, reqbody interface{}, params *url.Values, out interface{}) error
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// The Http Client that is used to make requests
HttpClient *http.Client
HttpRetryTimeout time.Duration
// Option to specify extra headers like User-Agent
ExtraHeader map[string]string
// contains filtered or unexported fields
}
Client struct stores an object to talk with Jamf API
func NewOauthClient ¶
NewOauthClient ... returns a new jamf.Client which can be used to access the API with OAuth
func (*Client) DoBinaryRequest ¶
func (c *Client) DoBinaryRequest(method, url string, body interface{}, headers map[string]string) ([]byte, error)
DoBinaryRequest sends an HTTP request and returns the raw binary response.
func (*Client) DoPackageUploadRequest ¶
DoPackageUploadRequest as part of jamfUploader
func (*Client) DoRawRequest ¶
DoRawRequest is a specialized function to handle raw string responses like extracting certificate public keys
Click to show internal directories.
Click to hide internal directories.