ci

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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 CiHelper

type CiHelper interface {
	Section(ctx context.Context, name string) Section
}

CiHelper is an interface for CI log formatting.

var Default CiHelper

func NewCiHelper

func NewCiHelper() CiHelper

NewCiHelper returns a CiHelper for the current CI environment.

type DefaultCi

type DefaultCi struct{}

DefaultCi implements CiHelper for non-CI environments.

func (*DefaultCi) Section

func (d *DefaultCi) Section(ctx context.Context, name string) Section

Section starts a new log section.

type DefaultCiSection

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

func (DefaultCiSection) End

func (d DefaultCiSection) End(ctx context.Context)

SectionEnd ends the current log section.

type GithubActions

type GithubActions struct{}

GithubActions implements CiHelper for GitHub Actions.

func (*GithubActions) Section

func (g *GithubActions) Section(ctx context.Context, name string) Section

SectionStart starts a new log section.

type GithubActionsSection

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

func (GithubActionsSection) End

type GitlabCi

type GitlabCi struct{}

GitlabCi implements CiHelper for GitLab CI.

func (*GitlabCi) Section

func (g *GitlabCi) Section(ctx context.Context, name string) Section

SectionStart starts a new log section.

type GitlabCiSection

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

func (GitlabCiSection) End

func (g GitlabCiSection) End(ctx context.Context)

SectionEnd ends the current log section.

type Section

type Section interface {
	End(ctx context.Context)
}

Jump to

Keyboard shortcuts

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