Documentation
¶
Index ¶
- Constants
- type Base
- func (t *Base) Do() *Base
- func (t *Base) EndpointRepos() *Base
- func (t *Base) EndpointReposActionsGithub() *Base
- func (t *Base) EndpointReposSecrets() *Base
- func (t *Base) EndpointReposSecretsPubkey() *Base
- func (t *Base) EndpointReposTopics() *Base
- func (t *Base) EndpointUserRepos() *Base
- func (t *Base) Err() *string
- func (t *Base) HeaderGithub() *Base
- func (t *Base) HeaderInit() *Base
- func (t *Base) Name() string
- func (t *Base) New(property *Property) *Base
- func (t *Base) Ok() bool
- func (t *Base) Output() *string
- func (t *Base) Repo() *string
- func (t *Base) SetDel() *Base
- func (t *Base) SetGet() *Base
- func (t *Base) SetPatch() *Base
- func (t *Base) SetPost() *Base
- func (t *Base) SetPut() *Base
- type IInfo
- type Property
Constants ¶
View Source
const (
Version = "v3.0.5"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
Base
func (*Base) EndpointRepos ¶
Initialize endpoint /repos/OWNER/REPO
Use current directory if GitApi.Repo is empty
func (*Base) EndpointReposActionsGithub ¶
Initialize endpoint /repos/OWNER/REPO/actions/permission
func (*Base) EndpointReposSecrets ¶
Initialize endpoint /repos/OWNER/REPO/actions/secrets
func (*Base) EndpointReposSecretsPubkey ¶
Initialize endpoint /repos/OWNER/REPO/actions/secrets/public-key
func (*Base) EndpointReposTopics ¶
Initialize endpoint /repos/OWNER/REPO/topics
func (*Base) EndpointUserRepos ¶
Initialize endpoint /user/repos
func (*Base) 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 string `json:"vendor,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.