runtime

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditSink added in v0.9.0

type AuditSink interface {
	Enabled() bool
	Write(audit.Entry) error
}

AuditSink receives completed command audit entries.

type Runtime

type Runtime struct {
	RootFlags *shared.RootFlags
	// contains filtered or unexported fields
}

Runtime owns cross-cutting CLI wiring that should not be spread across commands and shared helpers.

func Ensure

func Ensure(rt *Runtime) *Runtime

Ensure returns rt when non-nil and otherwise creates a detached runtime.

func NewDetached

func NewDetached() *Runtime

NewDetached constructs a runtime for command packages that do not need root flag binding but still want shared client factories.

func NewRoot

func NewRoot(fs *flag.FlagSet) *Runtime

NewRoot constructs a runtime and binds root-level flags to the provided FlagSet.

func (*Runtime) ApplyRootContext

func (rt *Runtime) ApplyRootContext(ctx context.Context) (context.Context, error)

ApplyRootContext applies root flag side effects and returns the derived execution context.

func (*Runtime) AuditSink added in v0.9.0

func (rt *Runtime) AuditSink() AuditSink

AuditSink returns the configured audit destination.

func (*Runtime) NewPlayService

func (rt *Runtime) NewPlayService(ctx context.Context) (*playclient.Service, error)

NewPlayService creates an authenticated Android Publisher service.

func (*Runtime) WithAppSigningServiceFactory added in v0.9.0

func (rt *Runtime) WithAppSigningServiceFactory(factory appsigningclient.ServiceFactory) *Runtime

WithAppSigningServiceFactory installs the enterprise App Signing boundary.

func (*Runtime) WithAuditSink added in v0.9.0

func (rt *Runtime) WithAuditSink(sink AuditSink) *Runtime

WithAuditSink returns rt configured with a command audit destination.

func (*Runtime) WithChecksServiceFactory added in v0.9.0

func (rt *Runtime) WithChecksServiceFactory(factory checksclient.ServiceFactory) *Runtime

func (*Runtime) WithClock added in v0.9.0

func (rt *Runtime) WithClock(clock shared.Clock) *Runtime

WithClock returns rt configured with a command-scoped time source.

func (*Runtime) WithCustomAppsServiceFactory added in v0.9.0

func (rt *Runtime) WithCustomAppsServiceFactory(factory customappsclient.ServiceFactory) *Runtime

func (*Runtime) WithDeveloperIDServiceFactory added in v0.9.0

func (rt *Runtime) WithDeveloperIDServiceFactory(factory developeridclient.ServiceFactory) *Runtime

WithDeveloperIDServiceFactory installs the official Developer ID Status boundary.

func (*Runtime) WithFilesystem added in v0.9.0

func (rt *Runtime) WithFilesystem(filesystem shared.Filesystem) *Runtime

WithFilesystem returns rt configured with a command-scoped durable file boundary.

func (*Runtime) WithGCSServiceFactory added in v0.9.0

func (rt *Runtime) WithGCSServiceFactory(factory gcsclient.ServiceFactory) *Runtime

func (*Runtime) WithGamesServiceFactory added in v0.9.0

func (rt *Runtime) WithGamesServiceFactory(factory gamesclient.ServiceFactory) *Runtime

func (*Runtime) WithIO added in v0.9.0

func (rt *Runtime) WithIO(stdout, stderr io.Writer) *Runtime

WithIO returns rt configured with command-scoped output streams.

func (*Runtime) WithIntegrityServiceFactory added in v0.9.0

func (rt *Runtime) WithIntegrityServiceFactory(factory integrityclient.ServiceFactory) *Runtime

func (*Runtime) WithPlayServiceFactory added in v0.9.0

func (rt *Runtime) WithPlayServiceFactory(factory playclient.ServiceFactory) *Runtime

WithPlayServiceFactory returns rt configured with a context-scoped Android Publisher service factory. It is primarily used by black-box command tests.

func (*Runtime) WithReportingServiceFactory added in v0.9.0

func (rt *Runtime) WithReportingServiceFactory(factory reportingclient.ServiceFactory) *Runtime

Jump to

Keyboard shortcuts

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