Documentation
¶
Index ¶
- type AWS
- type AWSOrg
- type Azure
- type EKS
- type GCP
- type K8S
- type K8SBenchmarkHelper
- type MockStrategy
- type MockStrategy_Expecter
- type MockStrategy_NewBenchmark_Call
- func (_c *MockStrategy_NewBenchmark_Call) Return(_a0 builder.Benchmark, _a1 error) *MockStrategy_NewBenchmark_Call
- func (_c *MockStrategy_NewBenchmark_Call) Run(run func(ctx context.Context, log *clog.Logger, cfg *config.Config)) *MockStrategy_NewBenchmark_Call
- func (_c *MockStrategy_NewBenchmark_Call) RunAndReturn(...) *MockStrategy_NewBenchmark_Call
- type MockStrategy_checkDependencies_Call
- func (_c *MockStrategy_checkDependencies_Call) Return(_a0 error) *MockStrategy_checkDependencies_Call
- func (_c *MockStrategy_checkDependencies_Call) Run(run func()) *MockStrategy_checkDependencies_Call
- func (_c *MockStrategy_checkDependencies_Call) RunAndReturn(run func() error) *MockStrategy_checkDependencies_Call
- type Strategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWS ¶
type AWS struct {
IdentityProvider awslib.IdentityProviderGetter
}
type AWSOrg ¶
type AWSOrg struct { IAMProvider iam.RoleGetter IdentityProvider awslib.IdentityProviderGetter AccountProvider awslib.AccountProviderAPI }
type EKS ¶
type EKS struct { AWSIdentityProvider awslib.IdentityProviderGetter AWSMetadataProvider awslib.MetadataProvider EKSClusterNameProvider awslib.EKSClusterNameProviderAPI ClientProvider k8s.ClientGetterAPI // contains filtered or unexported fields }
type GCP ¶
type GCP struct { CfgProvider auth.ConfigProviderAPI // contains filtered or unexported fields }
type K8S ¶
type K8S struct { ClientProvider k8s.ClientGetterAPI // contains filtered or unexported fields }
type K8SBenchmarkHelper ¶
type K8SBenchmarkHelper struct {
// contains filtered or unexported fields
}
func NewK8sBenchmarkHelper ¶
func NewK8sBenchmarkHelper(log *clog.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 ¶
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
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 *clog.Logger
- cfg *config.Config
type MockStrategy_NewBenchmark_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 (_c *MockStrategy_NewBenchmark_Call) Return(_a0 builder.Benchmark, _a1 error) *MockStrategy_NewBenchmark_Call
func (*MockStrategy_NewBenchmark_Call) Run ¶
func (_c *MockStrategy_NewBenchmark_Call) Run(run func(ctx context.Context, log *clog.Logger, cfg *config.Config)) *MockStrategy_NewBenchmark_Call
func (*MockStrategy_NewBenchmark_Call) RunAndReturn ¶
type MockStrategy_checkDependencies_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 (_c *MockStrategy_checkDependencies_Call) Return(_a0 error) *MockStrategy_checkDependencies_Call
func (*MockStrategy_checkDependencies_Call) Run ¶
func (_c *MockStrategy_checkDependencies_Call) Run(run func()) *MockStrategy_checkDependencies_Call
func (*MockStrategy_checkDependencies_Call) RunAndReturn ¶
func (_c *MockStrategy_checkDependencies_Call) RunAndReturn(run func() error) *MockStrategy_checkDependencies_Call
Source Files
¶
Click to show internal directories.
Click to hide internal directories.