Documentation
¶
Index ¶
- type MockHelper
- func (m *MockHelper) GetArgs() []string
- func (m *MockHelper) GetBuildInfo() (*build.Info, error)
- func (m *MockHelper) GetCmd() *cobra.Command
- func (m *MockHelper) GetConfig() (config.Hook, error)
- func (m *MockHelper) GetContext() context.Context
- func (m *MockHelper) GetKonnectSDK(cfg config.Hook, logger *slog.Logger) (helpers.SDKAPI, error)
- func (m *MockHelper) GetLogger() (*slog.Logger, error)
- func (m *MockHelper) GetOutputFormat() (common.OutputFormat, error)
- func (m *MockHelper) GetProduct() (products.ProductValue, error)
- func (m *MockHelper) GetStreams() *iostreams.IOStreams
- func (m *MockHelper) GetVerb() (verbs.VerbValue, error)
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
GetKonnectSDKMock func(config.Hook, *slog.Logger) (helpers.SDKAPI, error)
}
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) GetContext ¶
func (m *MockHelper) GetContext() context.Context
func (*MockHelper) GetKonnectSDK ¶ added in v0.0.13
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
Click to show internal directories.
Click to hide internal directories.