client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 5 Imported by: 0

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
}

func NewClient

func NewClient(insecureSkipVerify bool) *Client

func (*Client) ApproleLogin

func (c *Client) ApproleLogin(path string, body, result, error interface{}) (*resty.Response, error)

func (*Client) ApproleLogout

func (c *Client) ApproleLogout(token, path string, body, result, error interface{}) (*resty.Response, error)

func (*Client) Delete

func (c *Client) Delete(token, path string, result, error interface{}) (*resty.Response, error)

func (*Client) Get

func (c *Client) Get(token, path string, result, error interface{}) (*resty.Response, error)

func (*Client) List

func (c *Client) List(token, path string, result, error interface{}) (*resty.Response, error)

func (*Client) Merge

func (c *Client) Merge(token, path string, body, result, error interface{}) (*resty.Response, error)

func (*Client) Post

func (c *Client) Post(token, path string, body, result, error interface{}) (*resty.Response, error)

func (*Client) Put

func (c *Client) Put(token, path string, body, result, error interface{}) (*resty.Response, error)

func (*Client) SetHostUrl

func (c *Client) SetHostUrl(url string) *Client

Jump to

Keyboard shortcuts

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