benchmark

package
v0.0.0-...-19bd712 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	IdentityProvider awslib.IdentityProviderGetter
}

func (*AWS) NewBenchmark

func (a *AWS) NewBenchmark(ctx context.Context, log *logp.Logger, cfg *config.Config) (builder.Benchmark, error)

type AWSOrg

type AWSOrg struct {
	IAMProvider      iam.RoleGetter
	IdentityProvider awslib.IdentityProviderGetter
	AccountProvider  awslib.AccountProviderAPI
}

func (*AWSOrg) NewBenchmark

func (a *AWSOrg) NewBenchmark(ctx context.Context, log *logp.Logger, cfg *config.Config) (builder.Benchmark, error)

type Azure

type Azure struct {
	// contains filtered or unexported fields
}

func (*Azure) NewBenchmark

func (a *Azure) NewBenchmark(ctx context.Context, log *logp.Logger, cfg *config.Config) (builder.Benchmark, error)

type EKS

type EKS struct {
	AWSCfgProvider         awslib.ConfigProviderAPI
	AWSIdentityProvider    awslib.IdentityProviderGetter
	AWSMetadataProvider    awslib.MetadataProvider
	EKSClusterNameProvider awslib.EKSClusterNameProviderAPI
	ClientProvider         k8s.ClientGetterAPI
	// contains filtered or unexported fields
}

func (*EKS) NewBenchmark

func (k *EKS) NewBenchmark(ctx context.Context, log *logp.Logger, cfg *config.Config) (builder.Benchmark, error)

type GCP

type GCP struct {
	CfgProvider auth.ConfigProviderAPI
	// contains filtered or unexported fields
}

func (*GCP) NewBenchmark

func (g *GCP) NewBenchmark(ctx context.Context, log *logp.Logger, cfg *config.Config) (builder.Benchmark, error)

type K8S

type K8S struct {
	ClientProvider k8s.ClientGetterAPI
	// contains filtered or unexported fields
}

func (*K8S) NewBenchmark

func (k *K8S) NewBenchmark(ctx context.Context, log *logp.Logger, cfg *config.Config) (builder.Benchmark, error)

type K8SBenchmarkHelper

type K8SBenchmarkHelper struct {
	// contains filtered or unexported fields
}

func NewK8sBenchmarkHelper

func NewK8sBenchmarkHelper(log *logp.Logger, cfg *config.Config, client client_gokubernetes.Interface) *K8SBenchmarkHelper

func (*K8SBenchmarkHelper) GetK8sDataProvider

func (h *K8SBenchmarkHelper) GetK8sDataProvider(ctx context.Context, clusterNameProvider k8s.ClusterNameProviderAPI) (dataprovider.CommonDataProvider, error)

func (*K8SBenchmarkHelper) GetK8sIdProvider

func (h *K8SBenchmarkHelper) GetK8sIdProvider(ctx context.Context) (dataprovider.IdProvider, error)

type MockStrategy

type MockStrategy struct {
	mock.Mock
}

MockStrategy is an autogenerated mock type for the Strategy type

func NewMockStrategy

func NewMockStrategy(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStrategy

NewMockStrategy creates a new instance of MockStrategy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockStrategy) EXPECT

func (_m *MockStrategy) EXPECT() *MockStrategy_Expecter

func (*MockStrategy) NewBenchmark

func (_m *MockStrategy) NewBenchmark(ctx context.Context, log *logp.Logger, cfg *config.Config) (builder.Benchmark, error)

NewBenchmark provides a mock function with given fields: ctx, log, cfg

type MockStrategy_Expecter

type MockStrategy_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockStrategy_Expecter) NewBenchmark

func (_e *MockStrategy_Expecter) NewBenchmark(ctx interface{}, log interface{}, cfg interface{}) *MockStrategy_NewBenchmark_Call

NewBenchmark is a helper method to define mock.On call

  • ctx context.Context
  • log *logp.Logger
  • cfg *config.Config

type MockStrategy_NewBenchmark_Call

type MockStrategy_NewBenchmark_Call struct {
	*mock.Call
}

MockStrategy_NewBenchmark_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewBenchmark'

func (*MockStrategy_NewBenchmark_Call) Return

func (*MockStrategy_NewBenchmark_Call) Run

func (*MockStrategy_NewBenchmark_Call) RunAndReturn

type MockStrategy_checkDependencies_Call

type MockStrategy_checkDependencies_Call struct {
	*mock.Call
}

MockStrategy_checkDependencies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'checkDependencies'

func (*MockStrategy_checkDependencies_Call) Return

func (*MockStrategy_checkDependencies_Call) Run

func (*MockStrategy_checkDependencies_Call) RunAndReturn

type Strategy

type Strategy interface {
	NewBenchmark(ctx context.Context, log *logp.Logger, cfg *config.Config) (builder.Benchmark, error)
	// contains filtered or unexported methods
}

func GetStrategy

func GetStrategy(cfg *config.Config, log *logp.Logger) (Strategy, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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