Documentation ¶
Index ¶
- Variables
- func Load(file string) (forge.Forge, error)
- func Serve(impl forge.Forge)
- type Plugin
- type RPC
- func (g *RPC) Activate(_ context.Context, u *model.User, r *model.Repo, link string) error
- func (g *RPC) Auth(_ context.Context, token, secret string) (string, error)
- func (g *RPC) BranchHead(_ context.Context, u *model.User, r *model.Repo, branch string) (*model.Commit, error)
- func (g *RPC) Branches(_ context.Context, u *model.User, r *model.Repo, p *model.ListOptions) ([]string, error)
- func (g *RPC) Deactivate(_ context.Context, u *model.User, r *model.Repo, link string) error
- func (g *RPC) Dir(_ context.Context, u *model.User, r *model.Repo, b *model.Pipeline, f string) ([]*types.FileMeta, error)
- func (g *RPC) File(_ context.Context, u *model.User, r *model.Repo, b *model.Pipeline, f string) ([]byte, error)
- func (g *RPC) Hook(_ context.Context, r *http.Request) (*model.Repo, *model.Pipeline, error)
- func (g *RPC) Login(_ context.Context, r *types.OAuthRequest) (*model.User, string, error)
- func (g *RPC) Name() string
- func (g *RPC) Netrc(u *model.User, r *model.Repo) (*model.Netrc, error)
- func (g *RPC) Org(_ context.Context, u *model.User, org string) (*model.Org, error)
- func (g *RPC) OrgMembership(_ context.Context, u *model.User, org string) (*model.OrgPerm, error)
- func (g *RPC) PullRequests(_ context.Context, u *model.User, r *model.Repo, p *model.ListOptions) ([]*model.PullRequest, error)
- func (g *RPC) Repo(_ context.Context, u *model.User, remoteID model.ForgeRemoteID, ...) (*model.Repo, error)
- func (g *RPC) Repos(_ context.Context, u *model.User) ([]*model.Repo, error)
- func (g *RPC) Status(_ context.Context, u *model.User, r *model.Repo, b *model.Pipeline, ...) error
- func (g *RPC) Teams(_ context.Context, u *model.User) ([]*model.Team, error)
- func (g *RPC) URL() string
- type RPCServer
- func (s *RPCServer) Activate(args []byte, resp *[]byte) error
- func (s *RPCServer) BranchHead(args []byte, resp *[]byte) error
- func (s *RPCServer) Branches(args []byte, resp *[]byte) error
- func (s *RPCServer) Deactivate(args []byte, resp *[]byte) error
- func (s *RPCServer) Dir(args []byte, resp *[]byte) error
- func (s *RPCServer) File(args []byte, resp *[]byte) error
- func (s *RPCServer) Hook(args []byte, resp *[]byte) error
- func (s *RPCServer) Login(args []byte, resp *[]byte) error
- func (s *RPCServer) Name(_ []byte, resp *string) error
- func (s *RPCServer) Netrc(args []byte, resp *[]byte) error
- func (s *RPCServer) Org(args []byte, resp *[]byte) error
- func (s *RPCServer) OrgMembership(args []byte, resp *[]byte) error
- func (s *RPCServer) PullRequests(args []byte, resp *[]byte) error
- func (s *RPCServer) Repo(args []byte, resp *[]byte) error
- func (s *RPCServer) Repos(args []byte, resp *[]byte) error
- func (s *RPCServer) Status(args []byte, resp *[]byte) error
- func (s *RPCServer) Teams(args []byte, resp *[]byte) error
- func (s *RPCServer) URL(_ []byte, resp *string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var HandshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "WOODPECKER_FORGE_ADDON_PLUGIN",
MagicCookieValue: "woodpecker-plugin-magic-cookie-value",
}
Functions ¶
Types ¶
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
func (*RPC) BranchHead ¶
func (*RPC) Deactivate ¶
func (*RPC) OrgMembership ¶
func (*RPC) PullRequests ¶
type RPCServer ¶
func (*RPCServer) OrgMembership ¶
Click to show internal directories.
Click to hide internal directories.