Documentation ¶
Index ¶
- func NewClusterForTest(kubeContextName string, isLocal bool) provider.Cluster
- func NewEnvsecStore() envsec.Store
- func NewJetpackManagedClusterForTest(kubeContextName string, hostname string) provider.Cluster
- type MockBuildStamp
- type MockCmdOptions
- func (*MockCmdOptions) AdditionalCommands() []*cobra.Command
- func (*MockCmdOptions) AnalyticsProvider() provider.Analytics
- func (*MockCmdOptions) AuthProvider() provider.Auth
- func (*MockCmdOptions) ClusterProvider() provider.ClusterProvider
- func (*MockCmdOptions) EnvSecProvider() provider.EnvSec
- func (*MockCmdOptions) ErrorLogger() provider.ErrorLogger
- func (*MockCmdOptions) Hooks() *hook.Hooks
- func (*MockCmdOptions) InitSurveyProvider() provider.InitSurveyProvider
- func (*MockCmdOptions) NamespaceProvider() provider.NamespaceProvider
- func (*MockCmdOptions) PersistentPostRunE(cmd *cobra.Command, args []string) error
- func (*MockCmdOptions) PersistentPreRunE(cmd *cobra.Command, args []string) error
- func (*MockCmdOptions) RepositoryProvider() provider.Repository
- func (m *MockCmdOptions) RootCommand() *cobra.Command
- func (m *MockCmdOptions) RootFlags() *flags.RootCmdFlags
- type MockEnvsecStore
- func (s *MockEnvsecStore) Delete(ctx context.Context, envId envsec.EnvID, name string) error
- func (s *MockEnvsecStore) DeleteAll(ctx context.Context, envId envsec.EnvID, names []string) error
- func (s *MockEnvsecStore) Get(ctx context.Context, envId envsec.EnvID, name string) (string, error)
- func (s *MockEnvsecStore) GetAll(ctx context.Context, envId envsec.EnvID, names []string) ([]envsec.EnvVar, error)
- func (s *MockEnvsecStore) List(ctx context.Context, envId envsec.EnvID) ([]envsec.EnvVar, error)
- func (s *MockEnvsecStore) Set(ctx context.Context, envId envsec.EnvID, name string, value string) error
- func (s *MockEnvsecStore) SetAll(ctx context.Context, envId envsec.EnvID, values map[string]string) error
- type MockPad
- func (p *MockPad) Build(ctx context.Context, opts *launchpad.BuildOptions) (*launchpad.BuildOutput, error)
- func (p *MockPad) Deploy(ctx context.Context, opts *launchpad.DeployOptions) (*launchpad.DeployOutput, error)
- func (p *MockPad) Down(ctx context.Context, do *launchpad.DownOptions) error
- func (p *MockPad) PortForward(ctx context.Context, opts *launchpad.PortForwardOptions) error
- func (p *MockPad) Publish(ctx context.Context, opts *launchpad.PublishOptions) (*launchpad.PublishOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterForTest ¶
func NewEnvsecStore ¶
Types ¶
type MockBuildStamp ¶
type MockBuildStamp struct { mock.Mock VersionFunc func() string IsCicdReleasedBinaryFunc func() bool IsDevBinaryFunc func() bool }
func (*MockBuildStamp) IsCicdReleasedBinary ¶
func (b *MockBuildStamp) IsCicdReleasedBinary() bool
func (*MockBuildStamp) IsDevBinary ¶
func (b *MockBuildStamp) IsDevBinary() bool
func (*MockBuildStamp) Version ¶
func (b *MockBuildStamp) Version() string
type MockCmdOptions ¶
type MockCmdOptions struct {
RootCMDFlags *flags.RootCmdFlags
}
func (*MockCmdOptions) AdditionalCommands ¶
func (*MockCmdOptions) AdditionalCommands() []*cobra.Command
func (*MockCmdOptions) AnalyticsProvider ¶
func (*MockCmdOptions) AnalyticsProvider() provider.Analytics
func (*MockCmdOptions) AuthProvider ¶
func (*MockCmdOptions) AuthProvider() provider.Auth
func (*MockCmdOptions) ClusterProvider ¶
func (*MockCmdOptions) ClusterProvider() provider.ClusterProvider
func (*MockCmdOptions) EnvSecProvider ¶
func (*MockCmdOptions) EnvSecProvider() provider.EnvSec
func (*MockCmdOptions) ErrorLogger ¶
func (*MockCmdOptions) ErrorLogger() provider.ErrorLogger
func (*MockCmdOptions) Hooks ¶
func (*MockCmdOptions) Hooks() *hook.Hooks
func (*MockCmdOptions) InitSurveyProvider ¶
func (*MockCmdOptions) InitSurveyProvider() provider.InitSurveyProvider
func (*MockCmdOptions) NamespaceProvider ¶
func (*MockCmdOptions) NamespaceProvider() provider.NamespaceProvider
func (*MockCmdOptions) PersistentPostRunE ¶
func (*MockCmdOptions) PersistentPostRunE(cmd *cobra.Command, args []string) error
func (*MockCmdOptions) PersistentPreRunE ¶
func (*MockCmdOptions) PersistentPreRunE(cmd *cobra.Command, args []string) error
func (*MockCmdOptions) RepositoryProvider ¶
func (*MockCmdOptions) RepositoryProvider() provider.Repository
func (*MockCmdOptions) RootCommand ¶
func (m *MockCmdOptions) RootCommand() *cobra.Command
func (*MockCmdOptions) RootFlags ¶
func (m *MockCmdOptions) RootFlags() *flags.RootCmdFlags
type MockEnvsecStore ¶
type MockPad ¶
type MockPad struct { mock.Mock BuildFunc func(ctx context.Context, opts *launchpad.BuildOptions) (*launchpad.BuildOutput, error) DeployFunc func(ctx context.Context, opts *launchpad.DeployOptions) (*launchpad.DeployOutput, error) PublishFunc func(ctx context.Context, opts *launchpad.PublishOptions) (*launchpad.PublishOutput, error) DownFunc func(ctx context.Context, do *launchpad.DownOptions) error PortForwardFunc func(ctx context.Context, opts *launchpad.PortForwardOptions) error }
func (*MockPad) Build ¶
func (p *MockPad) Build(ctx context.Context, opts *launchpad.BuildOptions) (*launchpad.BuildOutput, error)
func (*MockPad) Deploy ¶
func (p *MockPad) Deploy(ctx context.Context, opts *launchpad.DeployOptions) (*launchpad.DeployOutput, error)
func (*MockPad) PortForward ¶
func (*MockPad) Publish ¶
func (p *MockPad) Publish( ctx context.Context, opts *launchpad.PublishOptions, ) (*launchpad.PublishOutput, error)
Click to show internal directories.
Click to hide internal directories.