factory

package
v3.35.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 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.

func WithTransport added in v3.35.0

func WithTransport(t http.RoundTripper) FactoryOpt

WithTransport sets a custom http.RoundTripper for the REST API client. It is composed with the debug transport when debug mode is enabled.

func WithUserAgentSuffix added in v3.35.1

func WithUserAgentSuffix(suffix string) FactoryOpt

WithUserAgentSuffix appends an extra product token to the default user agent.

Jump to

Keyboard shortcuts

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