Documentation ¶
Index ¶
- func CreateMockAWSConfigLoader() AWSConfigLoader
- func CreateMockAutoscalingClientProvider(...) ApplicationAutoscalingClientProvider
- func CreateMockAutoscalingClientWrapperProvider(...) clientwrapper.ApplicationAutoscalingClientWrapperProvider
- func CreateMockNamespace(ctx context.Context, k8sClient client.Client, k8sNamespace string) error
- func CreateMockSageMakerClientProvider(sageMakerClient sagemakeriface.SageMakerAPI) SageMakerClientProvider
- func CreateMockSageMakerClientWrapperProvider(sageMakerClient sagemakeriface.SageMakerAPI) clientwrapper.SageMakerClientWrapperProvider
- func CreateReconciliationRequest(name string, namespace string) ctrl.Request
- func ExpectNoRequeue(result ctrl.Result, err error)
- func ExpectRequeueAfterInterval(result ctrl.Result, err error, pollDuration string)
- func ExpectRequeueImmediately(result ctrl.Result, err error)
- func ParseDurationOrFail(str string) time.Duration
- func ToBoolPtr(b bool) *bool
- func ToFloat64Ptr(f float64) *float64
- func ToInt64Ptr(i int64) *int64
- func ToIntPtr(i int) *int
- func ToStringPtr(str string) *string
- type FailTestOnCreateK8sClient
- func (m FailTestOnCreateK8sClient) Create(_ context.Context, _ runtime.Object, _ ...client.CreateOption) error
- func (m FailTestOnCreateK8sClient) Get(ctx context.Context, key client.ObjectKey, obj runtime.Object) error
- func (m FailTestOnCreateK8sClient) List(ctx context.Context, obj runtime.Object, opts ...client.ListOption) error
- func (m FailTestOnCreateK8sClient) Update(ctx context.Context, obj runtime.Object, opts ...client.UpdateOption) error
- type FailTestOnGetK8sClient
- type FailToCreateK8sClient
- func (m FailToCreateK8sClient) Create(_ context.Context, _ runtime.Object, _ ...client.CreateOption) error
- func (m FailToCreateK8sClient) Get(ctx context.Context, key client.ObjectKey, obj runtime.Object) error
- func (m FailToCreateK8sClient) List(ctx context.Context, obj runtime.Object, opts ...client.ListOption) error
- type FailToGetK8sClient
- type FailToListK8sClient
- type FailToUpdateK8sClient
- type FailToUpdateK8sStatusWriter
- type MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddDeleteScalingPolicyErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddDeleteScalingPolicyResponse(data applicationautoscaling.DeleteScalingPolicyOutput) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddDeregisterScalableTargetsErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddDeregisterScalableTargetsResponse(data applicationautoscaling.DeregisterScalableTargetOutput) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddDescribeScalableTargetsErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddDescribeScalableTargetsResponse(data applicationautoscaling.DescribeScalableTargetsOutput) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddDescribeScalingPoliciesEmptyResponse() *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddDescribeScalingPoliciesErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddDescribeScalingPoliciesResponse(data applicationautoscaling.DescribeScalingPoliciesOutput) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddPutScalingPolicyErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddPutScalingPolicyResponse(data applicationautoscaling.PutScalingPolicyOutput) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddRegisterScalableTargetsErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) AddRegisterScalableTargetsResponse(data applicationautoscaling.RegisterScalableTargetOutput) *MockAutoscalingClientBuilder
- func (m *MockAutoscalingClientBuilder) Build() applicationautoscalingiface.ApplicationAutoScalingAPI
- func (m *MockAutoscalingClientBuilder) WithRequestList(requests *List) *MockAutoscalingClientBuilder
- type MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateEndpointConfigErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateEndpointConfigResponse(data sagemaker.CreateEndpointConfigOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateEndpointErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateEndpointResponse(data sagemaker.CreateEndpointOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateHyperParameterTuningJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateHyperParameterTuningJobResponse(data sagemaker.CreateHyperParameterTuningJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateModelErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateModelResponse(data sagemaker.CreateModelOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateProcessingJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateProcessingJobResponse(data sagemaker.CreateProcessingJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddCreateTrainingJobResponse(data sagemaker.CreateTrainingJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDeleteEndpointConfigErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDeleteEndpointConfigResponse(data sagemaker.DeleteEndpointConfigOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDeleteEndpointErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDeleteEndpointResponse(data sagemaker.DeleteEndpointOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDeleteModelErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDeleteModelResponse(data sagemaker.DeleteModelOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeEndpointConfigErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeEndpointConfigResponse(data sagemaker.DescribeEndpointConfigOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeEndpointErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeEndpointResponse(data sagemaker.DescribeEndpointOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeHyperParameterTuningJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeHyperParameterTuningJobResponse(data sagemaker.DescribeHyperParameterTuningJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeModelErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeModelResponse(data sagemaker.DescribeModelOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeProcessingJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeProcessingJobResponse(data sagemaker.DescribeProcessingJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeTrainingJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeTrainingJobResponse(data sagemaker.DescribeTrainingJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeTransformJobErrorResponse(code string, statusCode int, reqId, message string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddDescribeTransformJobResponse(data sagemaker.DescribeTransformJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddListTrainingJobsForHyperParameterTuningJobErrorResponse(code string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddListTrainingJobsForHyperParameterTuningJobResponse(data sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddStopHyperParameterTuningJobResponse(data sagemaker.StopHyperParameterTuningJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddStopProcessingJobResponse(data sagemaker.StopProcessingJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddStopTrainingJobErrorResponse(code string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddStopTrainingJobResponse(data sagemaker.StopTrainingJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddStopTransformJobResponse(data sagemaker.StopTransformJobOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddUpdateEndpointErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) AddUpdateEndpointResponse(data sagemaker.UpdateEndpointOutput) *MockSageMakerClientBuilder
- func (m *MockSageMakerClientBuilder) Build() sagemakeriface.SageMakerAPI
- func (m *MockSageMakerClientBuilder) GetAddedResponsesLen() int
- func (m *MockSageMakerClientBuilder) WithRequestList(requests *List) *MockSageMakerClientBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMockAWSConfigLoader ¶ added in v1.2.0
func CreateMockAWSConfigLoader() AWSConfigLoader
func CreateMockAutoscalingClientProvider ¶ added in v1.2.0
func CreateMockAutoscalingClientProvider(applicationAutoscalingClient applicationautoscalingiface.ApplicationAutoScalingAPI) ApplicationAutoscalingClientProvider
CreateMockAutoscalingClientProvider Create a provider that creates a mock ApplicationAutoscaling client.
func CreateMockAutoscalingClientWrapperProvider ¶ added in v1.2.0
func CreateMockAutoscalingClientWrapperProvider(applicationAutoscalingClient applicationautoscalingiface.ApplicationAutoScalingAPI) clientwrapper.ApplicationAutoscalingClientWrapperProvider
CreateMockAutoscalingClientWrapperProvider Creates a provider that creates a mock Application client wrapper.
func CreateMockNamespace ¶ added in v1.2.0
func CreateMockSageMakerClientProvider ¶
func CreateMockSageMakerClientProvider(sageMakerClient sagemakeriface.SageMakerAPI) SageMakerClientProvider
Create a provider that creates a mock SageMaker client.
func CreateMockSageMakerClientWrapperProvider ¶
func CreateMockSageMakerClientWrapperProvider(sageMakerClient sagemakeriface.SageMakerAPI) clientwrapper.SageMakerClientWrapperProvider
Create a provider that creates a mock SageMaker client wrapper.
func CreateReconciliationRequest ¶
Helper function to create a ctrl.Request.
func ExpectNoRequeue ¶
Expect the controller return value to be NoRequeue
func ExpectRequeueAfterInterval ¶
Expect the controller return value to be RequeueAfterInterval, with the poll duration specified.
func ExpectRequeueImmediately ¶
Expect the controller return value to be RequeueImmediately.
func ParseDurationOrFail ¶
func ToFloat64Ptr ¶
func ToInt64Ptr ¶
func ToStringPtr ¶
Types ¶
type FailTestOnCreateK8sClient ¶
type FailTestOnCreateK8sClient struct { client.Writer client.Reader client.StatusClient ActualClient client.Client }
Make test fail on Create.
func (FailTestOnCreateK8sClient) Create ¶
func (m FailTestOnCreateK8sClient) Create(_ context.Context, _ runtime.Object, _ ...client.CreateOption) error
Make test fail.
func (FailTestOnCreateK8sClient) Get ¶
func (m FailTestOnCreateK8sClient) Get(ctx context.Context, key client.ObjectKey, obj runtime.Object) error
Get should work normally.
func (FailTestOnCreateK8sClient) List ¶
func (m FailTestOnCreateK8sClient) List(ctx context.Context, obj runtime.Object, opts ...client.ListOption) error
List should work normally.
func (FailTestOnCreateK8sClient) Update ¶
func (m FailTestOnCreateK8sClient) Update(ctx context.Context, obj runtime.Object, opts ...client.UpdateOption) error
Update should work normally.
type FailTestOnGetK8sClient ¶
Make test fail on Get.
type FailToCreateK8sClient ¶
type FailToCreateK8sClient struct { client.Writer client.Reader client.StatusClient ActualClient client.Client }
Mock of Kubernetes client.Client that always returns error when Create is invoked.
func (FailToCreateK8sClient) Create ¶
func (m FailToCreateK8sClient) Create(_ context.Context, _ runtime.Object, _ ...client.CreateOption) error
Always return error on Create.
func (FailToCreateK8sClient) Get ¶
func (m FailToCreateK8sClient) Get(ctx context.Context, key client.ObjectKey, obj runtime.Object) error
Get should work normally.
func (FailToCreateK8sClient) List ¶
func (m FailToCreateK8sClient) List(ctx context.Context, obj runtime.Object, opts ...client.ListOption) error
List should work normally.
type FailToGetK8sClient ¶
Mock of Kubernetes client.Client that always returns error when Get is invoked. TODO Should merge all k8s client mocks to a single, flexible mock.
type FailToListK8sClient ¶
Mock of Kubernetes client.Client that always returns error when List is invoked.
func (FailToListK8sClient) List ¶
func (m FailToListK8sClient) List(_ context.Context, _ runtime.Object, _ ...client.ListOption) error
Always return error.
type FailToUpdateK8sClient ¶
type FailToUpdateK8sClient struct { client.Writer client.Reader client.StatusClient ActualClient client.Client }
Mock of Kubernetes client.Client that always returns error when Update is invoked.
func (FailToUpdateK8sClient) Get ¶
func (m FailToUpdateK8sClient) Get(ctx context.Context, key client.ObjectKey, obj runtime.Object) error
Get should work normally.
func (FailToUpdateK8sClient) Status ¶
func (m FailToUpdateK8sClient) Status() client.StatusWriter
Status should always return a mock status writer with Update patched.
func (FailToUpdateK8sClient) Update ¶
func (m FailToUpdateK8sClient) Update(_ context.Context, _ runtime.Object, _ ...client.UpdateOption) error
Update should always return error on Update.
type FailToUpdateK8sStatusWriter ¶
type FailToUpdateK8sStatusWriter struct {
client.StatusWriter
}
func (FailToUpdateK8sStatusWriter) Update ¶
func (m FailToUpdateK8sStatusWriter) Update(_ context.Context, _ runtime.Object, _ ...client.UpdateOption) error
Update should always return an error.
type MockAutoscalingClientBuilder ¶ added in v1.2.0
type MockAutoscalingClientBuilder struct {
// contains filtered or unexported fields
}
MockAutoscalingClientBuilder is a Builder for mock Autoscaling API clients
func NewMockAutoscalingClientBuilder ¶ added in v1.2.0
func NewMockAutoscalingClientBuilder(testReporter GinkgoTInterface) *MockAutoscalingClientBuilder
NewMockAutoscalingClientBuilder returns a MockAuoscalingClientBuilder
func (*MockAutoscalingClientBuilder) AddDeleteScalingPolicyErrorResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddDeleteScalingPolicyErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
AddDeleteScalingPolicyErrorResponse Add a PutScalingPolicy error response to the client.
func (*MockAutoscalingClientBuilder) AddDeleteScalingPolicyResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddDeleteScalingPolicyResponse(data applicationautoscaling.DeleteScalingPolicyOutput) *MockAutoscalingClientBuilder
AddDeleteScalingPolicyResponse Add a PutScalingPolicy response to the client.
func (*MockAutoscalingClientBuilder) AddDeregisterScalableTargetsErrorResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddDeregisterScalableTargetsErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
AddDeregisterScalableTargetsErrorResponse Add a PutScalingPolicy error response to the client.
func (*MockAutoscalingClientBuilder) AddDeregisterScalableTargetsResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddDeregisterScalableTargetsResponse(data applicationautoscaling.DeregisterScalableTargetOutput) *MockAutoscalingClientBuilder
AddDeregisterScalableTargetsResponse Add a PutScalingPolicy response to the client.
func (*MockAutoscalingClientBuilder) AddDescribeScalableTargetsErrorResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddDescribeScalableTargetsErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
AddDescribeScalableTargetsErrorResponse Add a DescribeScalingPolicy error response to the client.
func (*MockAutoscalingClientBuilder) AddDescribeScalableTargetsResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddDescribeScalableTargetsResponse(data applicationautoscaling.DescribeScalableTargetsOutput) *MockAutoscalingClientBuilder
AddDescribeScalableTargetsResponse Add a DescribeScalingPolicy response to the client.
func (*MockAutoscalingClientBuilder) AddDescribeScalingPoliciesEmptyResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddDescribeScalingPoliciesEmptyResponse() *MockAutoscalingClientBuilder
AddDescribeScalingPoliciesEmptyResponse Add a DescribeScalingPolicy response to the client.
func (*MockAutoscalingClientBuilder) AddDescribeScalingPoliciesErrorResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddDescribeScalingPoliciesErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
AddDescribeScalingPoliciesErrorResponse Add a DescribeScalingPolicy error response to the client.
func (*MockAutoscalingClientBuilder) AddDescribeScalingPoliciesResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddDescribeScalingPoliciesResponse(data applicationautoscaling.DescribeScalingPoliciesOutput) *MockAutoscalingClientBuilder
AddDescribeScalingPoliciesResponse Add a DescribeScalingPolicy response to the client.
func (*MockAutoscalingClientBuilder) AddPutScalingPolicyErrorResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddPutScalingPolicyErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
AddPutScalingPolicyErrorResponse Add a PutScalingPolicy error response to the client.
func (*MockAutoscalingClientBuilder) AddPutScalingPolicyResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddPutScalingPolicyResponse(data applicationautoscaling.PutScalingPolicyOutput) *MockAutoscalingClientBuilder
AddPutScalingPolicyResponse Add a PutScalingPolicy response to the client.
func (*MockAutoscalingClientBuilder) AddRegisterScalableTargetsErrorResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddRegisterScalableTargetsErrorResponse(code string, message string, statusCode int, reqID string) *MockAutoscalingClientBuilder
AddRegisterScalableTargetsErrorResponse Add a PutScalingPolicy error response to the client.
func (*MockAutoscalingClientBuilder) AddRegisterScalableTargetsResponse ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) AddRegisterScalableTargetsResponse(data applicationautoscaling.RegisterScalableTargetOutput) *MockAutoscalingClientBuilder
AddRegisterScalableTargetsResponse Add a PutScalingPolicy response to the client.
func (*MockAutoscalingClientBuilder) Build ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) Build() applicationautoscalingiface.ApplicationAutoScalingAPI
Build Create a mock ApplicationAutoscaling API client given configuration.
func (*MockAutoscalingClientBuilder) WithRequestList ¶ added in v1.2.0
func (m *MockAutoscalingClientBuilder) WithRequestList(requests *List) *MockAutoscalingClientBuilder
WithRequestList Store requests received by the mock client in a user-provided list.
type MockSageMakerClientBuilder ¶
type MockSageMakerClientBuilder struct {
// contains filtered or unexported fields
}
Builder for mock SageMaker API clients.
func NewMockSageMakerClientBuilder ¶
func NewMockSageMakerClientBuilder(testReporter GinkgoTInterface) *MockSageMakerClientBuilder
func (*MockSageMakerClientBuilder) AddCreateEndpointConfigErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddCreateEndpointConfigErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a CreateEndpointConfig error response to the client.
func (*MockSageMakerClientBuilder) AddCreateEndpointConfigResponse ¶
func (m *MockSageMakerClientBuilder) AddCreateEndpointConfigResponse(data sagemaker.CreateEndpointConfigOutput) *MockSageMakerClientBuilder
Add a CreateEndpointConfig response to the client.
func (*MockSageMakerClientBuilder) AddCreateEndpointErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddCreateEndpointErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a CreateEndpoint error response to the client.
func (*MockSageMakerClientBuilder) AddCreateEndpointResponse ¶
func (m *MockSageMakerClientBuilder) AddCreateEndpointResponse(data sagemaker.CreateEndpointOutput) *MockSageMakerClientBuilder
Add a CreateEndpoint response to the client.
func (*MockSageMakerClientBuilder) AddCreateHyperParameterTuningJobErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddCreateHyperParameterTuningJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a CreateHyperParameterTuningJob error response to the client.
func (*MockSageMakerClientBuilder) AddCreateHyperParameterTuningJobResponse ¶
func (m *MockSageMakerClientBuilder) AddCreateHyperParameterTuningJobResponse(data sagemaker.CreateHyperParameterTuningJobOutput) *MockSageMakerClientBuilder
Add a CreateHyperParameterTuningJob response to the client.
func (*MockSageMakerClientBuilder) AddCreateModelErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddCreateModelErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a CreateModel error response to the client.
func (*MockSageMakerClientBuilder) AddCreateModelResponse ¶
func (m *MockSageMakerClientBuilder) AddCreateModelResponse(data sagemaker.CreateModelOutput) *MockSageMakerClientBuilder
Add a CreateModel response to the client.
func (*MockSageMakerClientBuilder) AddCreateProcessingJobErrorResponse ¶ added in v1.2.0
func (m *MockSageMakerClientBuilder) AddCreateProcessingJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
AddCreateProcessingJobErrorResponse returns an error response to the client.
func (*MockSageMakerClientBuilder) AddCreateProcessingJobResponse ¶ added in v1.2.0
func (m *MockSageMakerClientBuilder) AddCreateProcessingJobResponse(data sagemaker.CreateProcessingJobOutput) *MockSageMakerClientBuilder
AddCreateProcessingJobResponse adds a CreateProcessingJob response to the client.
func (*MockSageMakerClientBuilder) AddCreateTrainingJobResponse ¶
func (m *MockSageMakerClientBuilder) AddCreateTrainingJobResponse(data sagemaker.CreateTrainingJobOutput) *MockSageMakerClientBuilder
Add a CreateTrainingJob response to the client.
func (*MockSageMakerClientBuilder) AddDeleteEndpointConfigErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddDeleteEndpointConfigErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a DeleteEndpointConfig error response to the client.
func (*MockSageMakerClientBuilder) AddDeleteEndpointConfigResponse ¶
func (m *MockSageMakerClientBuilder) AddDeleteEndpointConfigResponse(data sagemaker.DeleteEndpointConfigOutput) *MockSageMakerClientBuilder
Add a DeleteEndpointConfig response to the client.
func (*MockSageMakerClientBuilder) AddDeleteEndpointErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddDeleteEndpointErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a DeleteEndpoint error response to the client.
func (*MockSageMakerClientBuilder) AddDeleteEndpointResponse ¶
func (m *MockSageMakerClientBuilder) AddDeleteEndpointResponse(data sagemaker.DeleteEndpointOutput) *MockSageMakerClientBuilder
Add a DeleteEndpoint response to the client.
func (*MockSageMakerClientBuilder) AddDeleteModelErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddDeleteModelErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a DeleteModel error response to the client.
func (*MockSageMakerClientBuilder) AddDeleteModelResponse ¶
func (m *MockSageMakerClientBuilder) AddDeleteModelResponse(data sagemaker.DeleteModelOutput) *MockSageMakerClientBuilder
Add a DeleteModel response to the client.
func (*MockSageMakerClientBuilder) AddDescribeEndpointConfigErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeEndpointConfigErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a DescribeEndpointConfig error response to the client.
func (*MockSageMakerClientBuilder) AddDescribeEndpointConfigResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeEndpointConfigResponse(data sagemaker.DescribeEndpointConfigOutput) *MockSageMakerClientBuilder
Add a DescribeEndpointConfig response to the client.
func (*MockSageMakerClientBuilder) AddDescribeEndpointErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeEndpointErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a DescribeEndpoint error response to the client.
func (*MockSageMakerClientBuilder) AddDescribeEndpointResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeEndpointResponse(data sagemaker.DescribeEndpointOutput) *MockSageMakerClientBuilder
Add a DescribeEndpoint response to the client.
func (*MockSageMakerClientBuilder) AddDescribeHyperParameterTuningJobErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeHyperParameterTuningJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a DescribeHyperParameterTuningJob error response to the client which has messsage too.
func (*MockSageMakerClientBuilder) AddDescribeHyperParameterTuningJobResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeHyperParameterTuningJobResponse(data sagemaker.DescribeHyperParameterTuningJobOutput) *MockSageMakerClientBuilder
Add a DescribeHyperParameterTuningJob response to the client.
func (*MockSageMakerClientBuilder) AddDescribeModelErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeModelErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a DescribeModel error response to the client.
func (*MockSageMakerClientBuilder) AddDescribeModelResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeModelResponse(data sagemaker.DescribeModelOutput) *MockSageMakerClientBuilder
Add a DescribeModel response to the client.
func (*MockSageMakerClientBuilder) AddDescribeProcessingJobErrorResponse ¶ added in v1.2.0
func (m *MockSageMakerClientBuilder) AddDescribeProcessingJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
AddDescribeProcessingJobErrorResponse returns an error response to the client.
func (*MockSageMakerClientBuilder) AddDescribeProcessingJobResponse ¶ added in v1.2.0
func (m *MockSageMakerClientBuilder) AddDescribeProcessingJobResponse(data sagemaker.DescribeProcessingJobOutput) *MockSageMakerClientBuilder
AddDescribeProcessingJobResponse returns a DescribeProcessingJob response to the client.
func (*MockSageMakerClientBuilder) AddDescribeTrainingJobErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeTrainingJobErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a DescribeTrainingJob error response to the client.
func (*MockSageMakerClientBuilder) AddDescribeTrainingJobResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeTrainingJobResponse(data sagemaker.DescribeTrainingJobOutput) *MockSageMakerClientBuilder
Add a DescribeTrainingJob response to the client.
func (*MockSageMakerClientBuilder) AddDescribeTransformJobErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeTransformJobErrorResponse(code string, statusCode int, reqId, message string) *MockSageMakerClientBuilder
Add a DescribeTrainingJob error response to the client.
func (*MockSageMakerClientBuilder) AddDescribeTransformJobResponse ¶
func (m *MockSageMakerClientBuilder) AddDescribeTransformJobResponse(data sagemaker.DescribeTransformJobOutput) *MockSageMakerClientBuilder
Add a DescribeTransformJob response to the client.
func (*MockSageMakerClientBuilder) AddListTrainingJobsForHyperParameterTuningJobErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddListTrainingJobsForHyperParameterTuningJobErrorResponse(code string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a ListTrainingJobsForHyperParameterTuningJob error response to the client.
func (*MockSageMakerClientBuilder) AddListTrainingJobsForHyperParameterTuningJobResponse ¶
func (m *MockSageMakerClientBuilder) AddListTrainingJobsForHyperParameterTuningJobResponse(data sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput) *MockSageMakerClientBuilder
Add a ListTrainingJobsForHyperParameterTuningJob response to the client.
func (*MockSageMakerClientBuilder) AddStopHyperParameterTuningJobResponse ¶
func (m *MockSageMakerClientBuilder) AddStopHyperParameterTuningJobResponse(data sagemaker.StopHyperParameterTuningJobOutput) *MockSageMakerClientBuilder
Add a StopHyperParameterTuningJob response to the client.
func (*MockSageMakerClientBuilder) AddStopProcessingJobResponse ¶ added in v1.2.0
func (m *MockSageMakerClientBuilder) AddStopProcessingJobResponse(data sagemaker.StopProcessingJobOutput) *MockSageMakerClientBuilder
AddStopProcessingJobResponse adds a StopProcessingJob response to the client.
func (*MockSageMakerClientBuilder) AddStopTrainingJobErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddStopTrainingJobErrorResponse(code string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a StopTrainingJob error response to the client.
func (*MockSageMakerClientBuilder) AddStopTrainingJobResponse ¶
func (m *MockSageMakerClientBuilder) AddStopTrainingJobResponse(data sagemaker.StopTrainingJobOutput) *MockSageMakerClientBuilder
Add a StopTrainingJob response to the client.
func (*MockSageMakerClientBuilder) AddStopTransformJobResponse ¶
func (m *MockSageMakerClientBuilder) AddStopTransformJobResponse(data sagemaker.StopTransformJobOutput) *MockSageMakerClientBuilder
Add a AddStopTransformJobResponse response to the client.
func (*MockSageMakerClientBuilder) AddUpdateEndpointErrorResponse ¶
func (m *MockSageMakerClientBuilder) AddUpdateEndpointErrorResponse(code string, message string, statusCode int, reqId string) *MockSageMakerClientBuilder
Add a UpdateEndpoint error response to the client.
func (*MockSageMakerClientBuilder) AddUpdateEndpointResponse ¶
func (m *MockSageMakerClientBuilder) AddUpdateEndpointResponse(data sagemaker.UpdateEndpointOutput) *MockSageMakerClientBuilder
Add a UpdateEndpoint response to the client.
func (*MockSageMakerClientBuilder) Build ¶
func (m *MockSageMakerClientBuilder) Build() sagemakeriface.SageMakerAPI
Create a mock SageMaker API client given configuration.
func (*MockSageMakerClientBuilder) GetAddedResponsesLen ¶
func (m *MockSageMakerClientBuilder) GetAddedResponsesLen() int
Get how many responses were added to the mock SageMaker client.
func (*MockSageMakerClientBuilder) WithRequestList ¶
func (m *MockSageMakerClientBuilder) WithRequestList(requests *List) *MockSageMakerClientBuilder
Store requests received by the mock client in a user-provided list.