common

package
v0.0.0-...-7194a8b Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(httpConnect HTTPConnectable, baseURL, authToken string, insecureSkipVerify bool) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) ApplyAuthTokenToHeader

func (c *Client) ApplyAuthTokenToHeader(header *http.Header)

func (*Client) AuthToken

func (c *Client) AuthToken() string

func (*Client) BaseURL

func (c *Client) BaseURL() *url.URL

func (*Client) HTTPClient

func (c *Client) HTTPClient() *http.Client

func (*Client) SetAuthToken

func (c *Client) SetAuthToken(authToken string)

func (*Client) SetBaseURL

func (c *Client) SetBaseURL(url *url.URL)

func (*Client) SetHTTPClient

func (c *Client) SetHTTPClient(httpClient *http.Client)

type HTTPConnectable

type HTTPConnectable interface {
	HTTPClient() *http.Client
	SetHTTPClient(httpClient *http.Client)

	BaseURL() *url.URL
	SetBaseURL(url *url.URL)

	AuthToken() string
	SetAuthToken(authToken string)
}

type ListParams

type ListParams struct {
	ID                   int
	Name                 string
	Q                    string
	Limit                int
	OffSet               int
	ExcludeConfigContext bool
}

func (*ListParams) SetListParams

func (p *ListParams) SetListParams(values *url.Values)

type ReturnValues

type ReturnValues struct {
	Count    int    `json:"count"`
	Next     string `json:"next"`
	Previous string `json:"previous"`
}

Jump to

Keyboard shortcuts

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