Documentation
¶
Index ¶
- Constants
- Variables
- type MockSSMClient
- func (m *MockSSMClient) DeleteParameter(ctx context.Context, input *ssm.DeleteParameterInput, ...) (*ssm.DeleteParameterOutput, error)
- func (m *MockSSMClient) GetParameter(ctx context.Context, input *ssm.GetParameterInput, ...) (*ssm.GetParameterOutput, error)
- func (m *MockSSMClient) GetParametersByPath(ctx context.Context, input *ssm.GetParametersByPathInput, ...) (*ssm.GetParametersByPathOutput, error)
- func (m *MockSSMClient) PutParameter(ctx context.Context, input *ssm.PutParameterInput, ...) (*ssm.PutParameterOutput, error)
- type SSMClient
Constants ¶
View Source
const ( Key1 = "test/webapp/cocpit_api_pass" Key2 = "test/webapp/user_api_pass" Key3 = "test/cockpit/user_api_pass" )
View Source
const ( SSMKey1 = "/" + Key1 SSMKey2 = "/" + Key2 SSMKey3 = "/" + Key3 )
Variables ¶
View Source
var KeyValueMap = map[string]string{ Key1: "as9@#$%^&*(/2hdiwnf", Key2: "as9@#$&*(/2saddsahdiwnf", Key3: "#$&*(/2saddsah&as", }
View Source
var SSMKeyValueMap = map[string]string{ SSMKey1: KeyValueMap[Key1], SSMKey2: KeyValueMap[Key2], SSMKey3: KeyValueMap[Key3], }
Functions ¶
This section is empty.
Types ¶
type MockSSMClient ¶
MockSSMClient is a mock implementation of the SSMClient interface.
func (*MockSSMClient) DeleteParameter ¶ added in v0.13.0
func (m *MockSSMClient) DeleteParameter(ctx context.Context, input *ssm.DeleteParameterInput, optFns ...func(*ssm.Options)) (*ssm.DeleteParameterOutput, error)
func (*MockSSMClient) GetParameter ¶
func (m *MockSSMClient) GetParameter(ctx context.Context, input *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
func (*MockSSMClient) GetParametersByPath ¶
func (m *MockSSMClient) GetParametersByPath(ctx context.Context, input *ssm.GetParametersByPathInput, optFns ...func(*ssm.Options)) (*ssm.GetParametersByPathOutput, error)
https://docs.aws.amazon.com/sdk-for-go/api/service/ssm/#SSM.GetParametersByPath https://docs.aws.amazon.com/sdk-for-go/api/service/ssm/#GetParametersByPathInput
func (*MockSSMClient) PutParameter ¶
func (m *MockSSMClient) PutParameter(ctx context.Context, input *ssm.PutParameterInput, optFns ...func(*ssm.Options)) (*ssm.PutParameterOutput, error)
type SSMClient ¶ added in v0.13.0
type SSMClient interface {
PutParameter(ctx context.Context, input *ssm.PutParameterInput, optFns ...func(*ssm.Options)) (*ssm.PutParameterOutput, error)
GetParameter(ctx context.Context, input *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
GetParametersByPath(ctx context.Context, input *ssm.GetParametersByPathInput, optFns ...func(*ssm.Options)) (*ssm.GetParametersByPathOutput, error)
DeleteParameter(ctx context.Context, input *ssm.DeleteParameterInput, optFns ...func(*ssm.Options)) (*ssm.DeleteParameterOutput, error)
}
Click to show internal directories.
Click to hide internal directories.