Documentation ¶
Index ¶
- func PrepareCreateToken(roundTripper *mhttp.MockRoundTripper, ...) (response *http.Response)
- func PrepareCreateUser(roundTripper *mhttp.MockRoundTripper, ...) (response *http.Response)
- func PrepareForDeleteUser(roundTripper *mhttp.MockRoundTripper, rootURL, userName, user, passwd string) (response *http.Response)
- func PrepareForEditUserDesc(roundTripper *mhttp.MockRoundTripper, ...)
- func PrepareGetUser(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd string) (response *http.Response)
- type Client
- func (q *Client) Create(username, password string) (user *ForCreate, err error)
- func (q *Client) CreateToken(targetUser, newTokenName string) (status *Token, err error)
- func (q *Client) Delete(username string) (err error)
- func (q *Client) EditDesc(description string) (err error)
- func (q *Client) Get() (status *User, err error)
- type ForCreate
- type Token
- type TokenData
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareCreateToken ¶
func PrepareCreateToken(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd, newTokenName, targetUser string) (response *http.Response)
PrepareCreateToken only for test
func PrepareCreateUser ¶
func PrepareCreateUser(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd, targetUserName string) (response *http.Response)
PrepareCreateUser only for test
func PrepareForDeleteUser ¶
func PrepareForDeleteUser(roundTripper *mhttp.MockRoundTripper, rootURL, userName, user, passwd string) ( response *http.Response)
PrepareForDeleteUser only for test
func PrepareForEditUserDesc ¶
func PrepareForEditUserDesc(roundTripper *mhttp.MockRoundTripper, rootURL, userName, description, user, passwd string)
PrepareForEditUserDesc only for test
func PrepareGetUser ¶
func PrepareGetUser(roundTripper *mhttp.MockRoundTripper, rootURL, user, passwd string) ( response *http.Response)
PrepareGetUser only for test
Types ¶
type Client ¶
type Client struct {
core.JenkinsCore
}
Client for connect the user
func (*Client) CreateToken ¶
CreateToken create a token in Jenkins
type ForCreate ¶
type ForCreate struct { User `json:",inline"` Username string `json:"username"` Password1 string `json:"password1"` Password2 string `json:"password2"` Email string `json:"email"` }
ForCreate is the data for creating a user
Click to show internal directories.
Click to hide internal directories.