cmd

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHelper

type MockHelper struct {
	GetCmdMock               func() *cobra.Command
	GetArgsMock              func() []string
	GetVerbMock              func() (verbs.VerbValue, error)
	GetProductMock           func() (products.ProductValue, error)
	GetStreamsMock           func() *iostreams.IOStreams
	GetConfigMock            func() (config.Hook, error)
	GetOutputFormatMock      func() (common.OutputFormat, error)
	GetLoggerMock            func() (*slog.Logger, error)
	GetBuildInfoMock         func() (*build.Info, error)
	GetContextMock           func() context.Context
	GetKonnectSDKFactoryMock func() helpers.SDKFactory
}

func (*MockHelper) GetArgs

func (m *MockHelper) GetArgs() []string

func (*MockHelper) GetBuildInfo

func (m *MockHelper) GetBuildInfo() (*build.Info, error)

func (*MockHelper) GetCmd

func (m *MockHelper) GetCmd() *cobra.Command

func (*MockHelper) GetConfig

func (m *MockHelper) GetConfig() (config.Hook, error)

func (*MockHelper) GetContext

func (m *MockHelper) GetContext() context.Context

func (*MockHelper) GetKonnectSDKFactory

func (m *MockHelper) GetKonnectSDKFactory() helpers.SDKFactory

func (*MockHelper) GetLogger

func (m *MockHelper) GetLogger() (*slog.Logger, error)

func (*MockHelper) GetOutputFormat

func (m *MockHelper) GetOutputFormat() (common.OutputFormat, error)

func (*MockHelper) GetProduct

func (m *MockHelper) GetProduct() (products.ProductValue, error)

func (*MockHelper) GetStreams

func (m *MockHelper) GetStreams() *iostreams.IOStreams

func (*MockHelper) GetVerb

func (m *MockHelper) GetVerb() (verbs.VerbValue, error)

Jump to

Keyboard shortcuts

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