api

package
v0.0.0-...-aa3ee38 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequest

type HTTPRequest struct {
	Config *client.ArtifactsConfig
	Body   any
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(config *client.ArtifactsConfig) *HTTPRequest

func (*HTTPRequest) Run

func (hc *HTTPRequest) Run() (*http.Response, error)

func (*HTTPRequest) Set

func (hc *HTTPRequest) Set() *HTTPRequest

func (*HTTPRequest) SetBody

func (hc *HTTPRequest) SetBody(body any) *HTTPRequest

func (*HTTPRequest) SetMethod

func (hc *HTTPRequest) SetMethod(method string) *HTTPRequest

func (*HTTPRequest) SetParam

func (hc *HTTPRequest) SetParam(key string, value string) *HTTPRequest

func (*HTTPRequest) SetResultStruct

func (hc *HTTPRequest) SetResultStruct(customStruct any) *HTTPRequest

func (*HTTPRequest) SetURL

func (hc *HTTPRequest) SetURL(uri string) *HTTPRequest

Jump to

Keyboard shortcuts

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