Documentation
¶
Index ¶
- type AuditSink
- type Runtime
- func (rt *Runtime) ApplyRootContext(ctx context.Context) (context.Context, error)
- func (rt *Runtime) AuditSink() AuditSink
- func (rt *Runtime) NewPlayService(ctx context.Context) (*playclient.Service, error)
- func (rt *Runtime) WithAppSigningServiceFactory(factory appsigningclient.ServiceFactory) *Runtime
- func (rt *Runtime) WithAuditSink(sink AuditSink) *Runtime
- func (rt *Runtime) WithChecksServiceFactory(factory checksclient.ServiceFactory) *Runtime
- func (rt *Runtime) WithClock(clock shared.Clock) *Runtime
- func (rt *Runtime) WithCustomAppsServiceFactory(factory customappsclient.ServiceFactory) *Runtime
- func (rt *Runtime) WithDeveloperIDServiceFactory(factory developeridclient.ServiceFactory) *Runtime
- func (rt *Runtime) WithFilesystem(filesystem shared.Filesystem) *Runtime
- func (rt *Runtime) WithGCSServiceFactory(factory gcsclient.ServiceFactory) *Runtime
- func (rt *Runtime) WithGamesServiceFactory(factory gamesclient.ServiceFactory) *Runtime
- func (rt *Runtime) WithIO(stdout, stderr io.Writer) *Runtime
- func (rt *Runtime) WithIntegrityServiceFactory(factory integrityclient.ServiceFactory) *Runtime
- func (rt *Runtime) WithPlayServiceFactory(factory playclient.ServiceFactory) *Runtime
- func (rt *Runtime) WithReportingServiceFactory(factory reportingclient.ServiceFactory) *Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
Runtime owns cross-cutting CLI wiring that should not be spread across commands and shared helpers.
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 (*Runtime) ApplyRootContext ¶
ApplyRootContext applies root flag side effects and returns the derived execution context.
func (*Runtime) NewPlayService ¶
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
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
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
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