Documentation
¶
Index ¶
- func Ptr[T any](v T) *T
- type Client
- type ClientConfig
- type HTTPClient
- func (c *HTTPClient) ChechAuth() error
- func (c *HTTPClient) Do(req *http.Request) (*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)
- type OAuthConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 OAuth *OAuthConfig 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(url string, config *OAuthConfig) (*HTTPClient, error)
func (*HTTPClient) ChechAuth ¶ added in v0.12.0
func (c *HTTPClient) ChechAuth() error
type OAuthConfig ¶ added in v0.12.0
type OAuthConfig struct { config.GitLabOAuthSecrets FlowType string Scopes []string }
Click to show internal directories.
Click to hide internal directories.