Documentation
¶
Overview ¶
Package forgejoactions is the Forgejo Actions ci.Driver for behaviour tests.
It is a minimal stub: every operation returns an error that satisfies errors.Is(err, drivers.ErrNotImplemented) and names the operation. It never delegates to the GitHub Actions or GitLab CI drivers, and it does not implement the optional ci.RunLister, ci.EmptyMatrixWaiter, or ci.AgentArtifactDownloader extensions. The real driver is #9651.
Index ¶
- func New(client forge.Client, token string) ci.Driver
- type Driver
- func (d *Driver) AssertNoHarnessAgentArtifact(context.Context, string, string, string, time.Time) error
- func (d *Driver) AssertNoWorkflow(context.Context, string, string, string, time.Time) error
- func (d *Driver) CountHarnessDispatches(context.Context, string, string, string, time.Time) (int, error)
- func (d *Driver) DownloadArtifacts(context.Context, string, string, int, string) error
- func (d *Driver) DownloadNamedArtifactAfter(context.Context, string, string, string, time.Time, string) error
- func (d *Driver) DownloadNamedArtifactFromRun(context.Context, string, string, int, string, string) error
- func (d *Driver) FindCompletedWorkflowRun(context.Context, string, string, string, time.Time) (*forge.WorkflowRun, error)
- func (d *Driver) GetRunLogs(context.Context, string, string, int) (string, error)
- func (d *Driver) WaitForFailedHarnessAgent(context.Context, string, string, string, time.Time) (*forge.WorkflowRun, error)
- func (d *Driver) WaitForHarnessAgent(context.Context, string, string, string, time.Time) (*forge.WorkflowRun, error)
- func (d *Driver) WaitForHarnessAgentRound(context.Context, string, string, string, time.Time, map[int]bool) (*forge.WorkflowRun, error)
- func (d *Driver) WaitForWorkflow(context.Context, string, string, string, time.Time, string) (*forge.WorkflowRun, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct {
// Client is the forge client the driver was built with. The stub
// does not use it.
Client forge.Client
// Token is the credential the driver was built with. The stub does
// not use it.
Token string
}
Driver implements ci.Driver for Forgejo Actions. Client and Token are set at construction and never modified, so it is safe for concurrent use.
func (*Driver) AssertNoHarnessAgentArtifact ¶
func (*Driver) AssertNoWorkflow ¶
func (*Driver) CountHarnessDispatches ¶
func (*Driver) DownloadArtifacts ¶
func (*Driver) DownloadNamedArtifactAfter ¶
func (*Driver) DownloadNamedArtifactFromRun ¶
func (*Driver) FindCompletedWorkflowRun ¶
func (*Driver) GetRunLogs ¶
func (*Driver) WaitForFailedHarnessAgent ¶
func (*Driver) WaitForHarnessAgent ¶
func (*Driver) WaitForHarnessAgentRound ¶
Click to show internal directories.
Click to hide internal directories.