Documentation ¶
Index ¶
- func DoGet(c *http.Client, url string) (body []byte, e error)
- func DoPost(c *http.Client, url string, contentType string, body io.Reader) (resp []byte, e error)
- func GetAuthToken() string
- func GetClient(verify bool) *http.Client
- func GetDCAAuthToken() string
- func SetAuthToken() error
- func SetDCAAuthToken() error
- func Validate(w http.ResponseWriter, r *http.Request) error
- func ValidateDCARequest(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAuthToken ¶
func SetAuthToken() error
SetAuthToken sets the session token Requires that the config has been set up before calling
func SetDCAAuthToken ¶
func SetDCAAuthToken() error
SetDCAAuthToken sets the session token for the Cluster Agent Requires that the config has been set up before calling
func Validate ¶
func Validate(w http.ResponseWriter, r *http.Request) error
Validate validates an http request
func ValidateDCARequest ¶
func ValidateDCARequest(w http.ResponseWriter, r *http.Request) error
ValidateDCARequest is used for the exposed endpoints of the DCA. It is different from Validate as we want to have different validations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.