coding

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 (c *Client) GetProjectRepos(ctx context.Context, projectID int) (repositories []ResultRepo, err error)

func (*Client) GetUserID

func (c *Client) GetUserID(ctx context.Context) (userID int, err error)

func (*Client) GetUserProjectIDs

func (c *Client) GetUserProjectIDs(ctx context.Context, userID int) (projects []ResultProject, err error)

func (*Client) Invoke

func (c *Client) Invoke(ctx context.Context, action string, body M) (result Result, err error)

type Hosting

type Hosting struct{}

func (Hosting) List

func (h Hosting) List(ctx context.Context, opts gitdump.HostingOptions) (out []gitdump.HostingRepo, err error)

type M

type M = map[string]any

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 ResultProject struct {
	ID   int    `json:"Id"`
	Name string `json:"Name"`
}

type ResultRepo

type ResultRepo struct {
	ID       int    `json:"Id"`
	Name     string `json:"Name"`
	HttpsUrl string `json:"HttpsUrl"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL