stainlessutils

package
v0.1.0-alpha.62 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GOOD_COMMIT_CONCLUSIONS = []string{"error", "warning", "note", "success"}

Functions

func IsGoodCommitConclusion

func IsGoodCommitConclusion(conclusion string) bool

Types

type Build

type Build struct {
	stainless.Build
}

Build wraps stainless.Build to provide convenience methods

func NewBuild

func NewBuild(build stainless.Build) *Build

NewBuild creates a new Build wrapper

func (*Build) BuildTarget

func (b *Build) BuildTarget(target stainless.Target) *BuildTarget

BuildTarget returns the build target wrapper for a given target type, replacing getBuildTarget

func (*Build) IsCompleted

func (b *Build) IsCompleted() bool

IsCompleted checks if the entire build is completed (all targets)

func (*Build) Languages

func (b *Build) Languages() []stainless.Target

Languages returns all available build languages/targets for this build

type BuildTarget

type BuildTarget struct {
	*stainless.BuildTarget
	// contains filtered or unexported fields
}

BuildTarget wraps stainless.BuildTarget to provide convenience methods

func NewBuildTarget

func NewBuildTarget(buildTarget *stainless.BuildTarget, target stainless.Target) *BuildTarget

NewBuildTarget creates a new BuildTarget wrapper

func (*BuildTarget) IsCommitCompleted

func (bt *BuildTarget) IsCommitCompleted() bool

func (*BuildTarget) IsCommitFailed

func (bt *BuildTarget) IsCommitFailed() bool

func (*BuildTarget) IsCompleted

func (bt *BuildTarget) IsCompleted() bool

func (*BuildTarget) IsGoodCommitConclusion

func (bt *BuildTarget) IsGoodCommitConclusion() bool

func (*BuildTarget) IsInProgress

func (bt *BuildTarget) IsInProgress() bool

func (*BuildTarget) StepInfo

func (bt *BuildTarget) StepInfo(step string) (status, url, conclusion string)

StepInfo extracts status, url, and conclusion from a step union

func (*BuildTarget) StepUnion

func (bt *BuildTarget) StepUnion(step string) any

StepUnion returns the step union for a given step name

func (*BuildTarget) Steps

func (bt *BuildTarget) Steps() []string

Steps returns all available steps for this build target

func (*BuildTarget) Target

func (bt *BuildTarget) Target() stainless.Target

Target returns the target type (node, python, etc.)

Jump to

Keyboard shortcuts

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