@@ -70,6 +70,11 @@ const (
70
70
var ErrNotFound = errors .New ("404 Not Found" )
71
71
72
72
// A Client manages communication with the GitLab API.
73
+ //
74
+ // Deprecated: use gitlab.com/gitlab-org/api/client-go instead.
75
+ // See https://gitlab.com/gitlab-org/api/client-go
76
+ //
77
+ // This package is completely frozen, nothing will be added, removed or changed.
73
78
type Client struct {
74
79
// HTTP client used to communicate with the API.
75
80
client * retryablehttp.Client
@@ -258,6 +263,11 @@ type RateLimiter interface {
258
263
259
264
// NewClient returns a new GitLab API client. To use API methods which require
260
265
// authentication, provide a valid private or personal token.
266
+ //
267
+ // Deprecated: This module has been migrated to gitlab.com/gitlab-org/api/client-go.
268
+ // See https://gitlab.com/gitlab-org/api/client-go
269
+ //
270
+ // This package is completely frozen, nothing will be added, removed or changed.
261
271
func NewClient (token string , options ... ClientOptionFunc ) (* Client , error ) {
262
272
client , err := newClient (options ... )
263
273
if err != nil {
@@ -270,6 +280,11 @@ func NewClient(token string, options ...ClientOptionFunc) (*Client, error) {
270
280
271
281
// NewBasicAuthClient returns a new GitLab API client. To use API methods which
272
282
// require authentication, provide a valid username and password.
283
+ //
284
+ // Deprecated: This module has been migrated to gitlab.com/gitlab-org/api/client-go.
285
+ // See https://gitlab.com/gitlab-org/api/client-go
286
+ //
287
+ // This package is completely frozen, nothing will be added, removed or changed.
273
288
func NewBasicAuthClient (username , password string , options ... ClientOptionFunc ) (* Client , error ) {
274
289
client , err := newClient (options ... )
275
290
if err != nil {
@@ -285,6 +300,11 @@ func NewBasicAuthClient(username, password string, options ...ClientOptionFunc)
285
300
286
301
// NewJobClient returns a new GitLab API client. To use API methods which require
287
302
// authentication, provide a valid job token.
303
+ //
304
+ // Deprecated: This module has been migrated to gitlab.com/gitlab-org/api/client-go.
305
+ // See https://gitlab.com/gitlab-org/api/client-go
306
+ //
307
+ // This package is completely frozen, nothing will be added, removed or changed.
288
308
func NewJobClient (token string , options ... ClientOptionFunc ) (* Client , error ) {
289
309
client , err := newClient (options ... )
290
310
if err != nil {
@@ -297,6 +317,11 @@ func NewJobClient(token string, options ...ClientOptionFunc) (*Client, error) {
297
317
298
318
// NewOAuthClient returns a new GitLab API client. To use API methods which
299
319
// require authentication, provide a valid oauth token.
320
+ //
321
+ // Deprecated: This module has been migrated to gitlab.com/gitlab-org/api/client-go.
322
+ // See https://gitlab.com/gitlab-org/api/client-go
323
+ //
324
+ // This package is completely frozen, nothing will be added, removed or changed.
300
325
func NewOAuthClient (token string , options ... ClientOptionFunc ) (* Client , error ) {
301
326
client , err := newClient (options ... )
302
327
if err != nil {
0 commit comments