repo

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenRequest

type AccessTokenRequest struct {
	GrantType    string `in:"formData" name:"grant_type"`
	UserName     string `in:"formData" name:"username"`
	Password     string `in:"formData" name:"password"`
	ClientID     string `in:"formData" name:"client_id"`
	ClientSecret string `in:"formData" name:"client_secret"`
	Scope        string `in:"formData" name:"scope"`
}

type AccessTokenResponse

type AccessTokenResponse struct {
	Error            string `json:"error,omitempty"`
	ErrorDescription string `json:"error_description,omitempty"`
	AccessToken      string `json:"access_token,omitempty"`
	TokenType        string `json:"token_type,omitempty"`
	ExpiresIn        int64  `json:"expires_in,omitempty"`
	RefreshToken     string `json:"refresh_token,omitempty"`
	Scope            string `json:"scope,omitempty"`
	CreatedAt        int64  `json:"created_at,omitempty"`
}

type Client

type Client struct {
	*client.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(mode, host string, port int16, org string) *Client

func (*Client) GetTags

func (c *Client) GetTags(repoName string) (TagsResponse, error)

type Commit

type Commit struct {
	Sha  string    `json:"sha"`
	Date time.Time `json:"url"`
}

type RepoResponse

type RepoResponse []Repository

type Repository

type Repository struct {
	ID       uint32 `json:"id"`
	Name     string `json:"name"`
	FullName string `json:"full_name"`
	HtmlUrl  string `json:"html_url"`
}

func (Repository) GetPackagePath

func (r Repository) GetPackagePath() string

type Tag

type Tag struct {
	Name   string `json:"name"`
	Commit Commit `json:"commit"`
}

type TagsResponse

type TagsResponse []Tag

Jump to

Keyboard shortcuts

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