mock

package
v0.0.0-...-2dfab7d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterForTest

func NewClusterForTest(kubeContextName string, isLocal bool) provider.Cluster

func NewEnvsecStore

func NewEnvsecStore() envsec.Store

func NewJetpackManagedClusterForTest

func NewJetpackManagedClusterForTest(
	kubeContextName string,
	hostname string,
) provider.Cluster

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 MockEnvsecStore struct {
	mock.Mock
}

func (*MockEnvsecStore) Delete

func (s *MockEnvsecStore) Delete(ctx context.Context, envId envsec.EnvID, name string) error

func (*MockEnvsecStore) DeleteAll

func (s *MockEnvsecStore) DeleteAll(ctx context.Context, envId envsec.EnvID, names []string) error

func (*MockEnvsecStore) Get

func (s *MockEnvsecStore) Get(ctx context.Context, envId envsec.EnvID, name string) (string, error)

func (*MockEnvsecStore) GetAll

func (s *MockEnvsecStore) GetAll(ctx context.Context, envId envsec.EnvID, names []string) ([]envsec.EnvVar, error)

func (*MockEnvsecStore) List

func (s *MockEnvsecStore) List(ctx context.Context, envId envsec.EnvID) ([]envsec.EnvVar, error)

func (*MockEnvsecStore) Set

func (s *MockEnvsecStore) Set(ctx context.Context, envId envsec.EnvID, name string, value string) error

func (*MockEnvsecStore) SetAll

func (s *MockEnvsecStore) SetAll(ctx context.Context, envId envsec.EnvID, values map[string]string) error

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 (*MockPad) Deploy

func (*MockPad) Down

func (p *MockPad) Down(ctx context.Context, do *launchpad.DownOptions) error

func (*MockPad) PortForward

func (p *MockPad) PortForward(ctx context.Context, opts *launchpad.PortForwardOptions) error

func (*MockPad) Publish

Jump to

Keyboard shortcuts

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