Documentation ¶
Index ¶
- type P0ProviderData
- func (data *P0ProviderData) Delete(path string) (*http.Response, error)
- func (data *P0ProviderData) Do(req *http.Request, responseJson any) (*http.Response, error)
- func (data *P0ProviderData) Get(path string, responseJson any) (*http.Response, error)
- func (data *P0ProviderData) Post(path string, requestJson any, responseJson any) (*http.Response, error)
- func (data *P0ProviderData) Put(path string, requestJson any, responseJson any) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P0ProviderData ¶
Like http.Client, except:
- handles authentication
- converts to/from JSON
- treats response codes 400 and higher as errors
func Configure ¶ added in v0.3.0
func Configure(req *resource.ConfigureRequest, resp *resource.ConfigureResponse) *P0ProviderData
func (*P0ProviderData) Delete ¶ added in v0.3.0
func (data *P0ProviderData) Delete(path string) (*http.Response, error)
Click to show internal directories.
Click to hide internal directories.