Documentation
¶
Index ¶
- Constants
- type GitApi
- func (t *GitApi) EndpointRepos() *GitApi
- func (t *GitApi) EndpointReposActionsGithub() *GitApi
- func (t *GitApi) EndpointReposSecrets() *GitApi
- func (t *GitApi) EndpointReposSecretsPubkey() *GitApi
- func (t *GitApi) EndpointReposTopics() *GitApi
- func (t *GitApi) EndpointUserRepos() *GitApi
- func (t *GitApi) HeaderGithub() *GitApi
- func (t *GitApi) HeaderInit() *GitApi
- func (t *GitApi) New(property *Property) *GitApi
- func (t *GitApi) SetDel() *GitApi
- func (t *GitApi) SetGet() *GitApi
- func (t *GitApi) SetPatch() *GitApi
- func (t *GitApi) SetPost() *GitApi
- func (t *GitApi) SetPut() *GitApi
- type IInfo
- type Property
- type Vendor
Constants ¶
View Source
const (
Version = "v2.2.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitApi ¶
GitApi
func (*GitApi) EndpointRepos ¶
Initialize endpoint /repos/OWNER/REPO
Use current directory if GitApi.Repo is empty
func (*GitApi) EndpointReposActionsGithub ¶
Initialize endpoint /repos/OWNER/REPO/actions/secrets/public-key
func (*GitApi) EndpointReposSecrets ¶
Initialize endpoint /repos/OWNER/REPO/actions/secrets
func (*GitApi) EndpointReposSecretsPubkey ¶
Initialize endpoint /repos/OWNER/REPO/actions/secrets/public-key
func (*GitApi) EndpointReposTopics ¶
Initialize endpoint /repos/OWNER/REPO/topics
func (*GitApi) EndpointUserRepos ¶
Initialize endpoint /user/repos
func (*GitApi) HeaderGithub ¶
Set github/gitea header
GitApi.Req.Token, if empty, authorization header will not be set.
type Property ¶
type Property struct {
Debug bool `json:"debug,omitempty"`
EntryPoint string `json:"entry_point,omitempty"`
Info IInfo `json:"info,omitempty"`
SkipVerify bool `json:"skip_verify,omitempty"`
Name string `json:"name,omitempty"`
Repo string `json:"repo,omitempty"`
Token string `json:"token,omitempty"`
User string `json:"user,omitempty"`
Vendor Vendor `json:"vendor,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.