base

package
v3.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "v3.0.5"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	*Property
	*restapi.Api
}

Base

func New

func New(property *Property) *Base

Setup a *GitApi

func (*Base) Do

func (t *Base) Do() *Base

func (*Base) EndpointRepos

func (t *Base) EndpointRepos() *Base

Initialize endpoint /repos/OWNER/REPO

Use current directory if GitApi.Repo is empty

func (*Base) EndpointReposActionsGithub

func (t *Base) EndpointReposActionsGithub() *Base

Initialize endpoint /repos/OWNER/REPO/actions/permission

func (*Base) EndpointReposSecrets

func (t *Base) EndpointReposSecrets() *Base

Initialize endpoint /repos/OWNER/REPO/actions/secrets

func (*Base) EndpointReposSecretsPubkey

func (t *Base) EndpointReposSecretsPubkey() *Base

Initialize endpoint /repos/OWNER/REPO/actions/secrets/public-key

func (*Base) EndpointReposTopics

func (t *Base) EndpointReposTopics() *Base

Initialize endpoint /repos/OWNER/REPO/topics

func (*Base) EndpointUserRepos

func (t *Base) EndpointUserRepos() *Base

Initialize endpoint /user/repos

func (*Base) Err

func (t *Base) Err() *string

func (*Base) HeaderGithub

func (t *Base) HeaderGithub() *Base

Set github/gitea header

GitApi.Req.Token, if empty, authorization header will not be set.

func (*Base) HeaderInit

func (t *Base) HeaderInit() *Base

Setup empty API header

func (*Base) Name

func (t *Base) Name() string

func (*Base) New

func (t *Base) New(property *Property) *Base

Setup a *GitApi

func (*Base) Ok

func (t *Base) Ok() bool

func (*Base) Output

func (t *Base) Output() *string

func (*Base) Repo

func (t *Base) Repo() *string

func (*Base) SetDel

func (t *Base) SetDel() *Base

func (*Base) SetGet

func (t *Base) SetGet() *Base

func (*Base) SetPatch

func (t *Base) SetPatch() *Base

func (*Base) SetPost

func (t *Base) SetPost() *Base

func (*Base) SetPut

func (t *Base) SetPut() *Base

type IInfo

type IInfo restapi.IInfo

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"`
}

Jump to

Keyboard shortcuts

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