From 7b320119ba532fd409ec7dade7ad02011c309599 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Wed, 18 Oct 2017 13:15:14 +0100 Subject: Update dependencies --- vendor/github.com/xanzy/go-gitlab/session.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'vendor/github.com/xanzy/go-gitlab/session.go') diff --git a/vendor/github.com/xanzy/go-gitlab/session.go b/vendor/github.com/xanzy/go-gitlab/session.go index a5083c2..f89fdbe 100644 --- a/vendor/github.com/xanzy/go-gitlab/session.go +++ b/vendor/github.com/xanzy/go-gitlab/session.go @@ -1,5 +1,5 @@ // -// Copyright 2015, Sander van Harmelen +// Copyright 2017, Sander van Harmelen // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,16 +21,14 @@ import "time" // SessionService handles communication with the session related methods of // the GitLab API. // -// GitLab API docs: -// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/session.md +// GitLab API docs: https://docs.gitlab.com/ce/api/session.html type SessionService struct { client *Client } // Session represents a GitLab session. // -// GitLab API docs: -// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/session.md#session +// GitLab API docs: https://docs.gitlab.com/ce/api/session.html#session type Session struct { ID int `json:"id"` Username string `json:"username"` @@ -54,8 +52,7 @@ type Session struct { // GetSessionOptions represents the available Session() options. // -// GitLab API docs: -// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/session.md#session +// GitLab API docs: https://docs.gitlab.com/ce/api/session.html#session type GetSessionOptions struct { Login *string `url:"login,omitempty" json:"login,omitempty"` Email *string `url:"email,omitempty" json:"email,omitempty"` @@ -64,8 +61,7 @@ type GetSessionOptions struct { // GetSession logs in to get private token. // -// GitLab API docs: -// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/session.md#session +// GitLab API docs: https://docs.gitlab.com/ce/api/session.html#session func (s *SessionService) GetSession(opt *GetSessionOptions, options ...OptionFunc) (*Session, *Response, error) { req, err := s.client.NewRequest("POST", "session", opt, options) if err != nil { -- cgit v1.2.3