factory

package
v3.31.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	Config        *config.Config
	GitRepository *git.Repository
	GraphQLClient graphql.Client
	RestAPIClient *buildkite.Client
	Version       string
	SkipConfirm   bool
	NoInput       bool
	Quiet         bool
	NoPager       bool
	Debug         bool
}

func New

func New(opts ...FactoryOpt) (*Factory, error)

type FactoryOpt added in v3.18.0

type FactoryOpt func(*factoryConfig)

FactoryOpt is a functional option for configuring the Factory

func WithDebug added in v3.18.0

func WithDebug(debug bool) FactoryOpt

WithDebug enables debug output for REST API calls

func WithOrgOverride added in v3.30.0

func WithOrgOverride(org string) FactoryOpt

WithOrgOverride overrides the configured organization slug for API token resolution. When set, the factory will use the token for this org instead of the currently selected org.

Jump to

Keyboard shortcuts

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