github

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client GitHub客户端封装

func NewClient

func NewClient(token, owner, repo, workflow string, logger *zap.Logger) *Client

NewClient 创建新的GitHub客户端

func (*Client) GetWorkflowStatus

func (c *Client) GetWorkflowStatus(requestID string) (*types.GitHubWorkflowResponse, error)

GetWorkflowStatus 获取工作流状态

func (*Client) TriggerMirrorWorkflow

func (c *Client) TriggerMirrorWorkflow(sourceImage, targetRegistry string) (*types.MirrorRequest, error)

TriggerMirrorWorkflow 触发镜像转存工作流

Jump to

Keyboard shortcuts

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