Documentation
¶
Index ¶
- Variables
- func Ptr[T any](v T) *T
- type AuthConfig
- type AuthType
- type BasicAuthConfig
- type Client
- type ClientConfig
- type Doer
- type HTTPClient
- func (c *HTTPClient) CheckAuthed() error
- func (c *HTTPClient) Do(req *http.Request) (*http.Response, error)
- func (c *HTTPClient) Get(url string) (*http.Response, error)
- func (c *HTTPClient) GetPath(path string) (*http.Response, error)
- func (c *HTTPClient) GetProjectJobArtifactsFile(ctx context.Context, projectPath string, jobId int64, fileType string) (*bytes.Reader, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound error = gitlab.ErrNotFound
Functions ¶
Types ¶
type AuthConfig ¶ added in v0.13.0
type AuthConfig struct { AuthType AuthType Basic BasicAuthConfig }
type BasicAuthConfig ¶ added in v0.13.0
type Client ¶
type Client struct { URL string Rest *rest.Client GraphQL *graphql.Client HTTP *HTTPClient // contains filtered or unexported fields }
func NewGitLabClient ¶
func NewGitLabClient(cfg ClientConfig) (*Client, error)
type ClientConfig ¶
type ClientConfig struct { URL string Token string Auth AuthConfig RateLimit float64 MaxWorkers int }
type HTTPClient ¶ added in v0.12.0
type HTTPClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶ added in v0.12.0
func NewHTTPClient(baseUrl string, cfg AuthConfig) (*HTTPClient, error)
func (*HTTPClient) CheckAuthed ¶ added in v0.13.0
func (c *HTTPClient) CheckAuthed() error
func (*HTTPClient) Get ¶ added in v0.13.0
func (c *HTTPClient) Get(url string) (*http.Response, error)
Click to show internal directories.
Click to hide internal directories.