Documentation ¶
Index ¶
- type Client
- func (c *Client) GetProjectRepos(ctx context.Context, projectID int) (repositories []ResultRepo, err error)
- func (c *Client) GetUserID(ctx context.Context) (userID int, err error)
- func (c *Client) GetUserProjectIDs(ctx context.Context, userID int) (projects []ResultProject, err error)
- func (c *Client) Invoke(ctx context.Context, action string, body M) (result Result, err error)
- type Hosting
- type M
- type Result
- type ResultProject
- type ResultRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetProjectRepos ¶
func (*Client) GetUserProjectIDs ¶
type Hosting ¶
type Hosting struct{}
func (Hosting) List ¶
func (h Hosting) List(ctx context.Context, opts gitdump.HostingOptions) (out []gitdump.HostingRepo, err error)
type Result ¶
type Result struct { Response struct { Error *struct { Message string `json:"Message"` } `json:"Error"` User struct { ID int `json:"Id"` } `json:"User"` ProjectList []ResultProject `json:"ProjectList"` DepotData struct { Depots []ResultRepo `json:"Depots"` } `json:"DepotData"` } ` json:"Response"` }
type ResultProject ¶
type ResultRepo ¶
Click to show internal directories.
Click to hide internal directories.