Documentation
¶
Index ¶
- func Base64(s string) string
- func MockDescribeImagesOutput() ecr.DescribeImagesOutput
- func MockGetFunctionOutput(config config.Config, namespace, functionName string) *lambda.GetFunctionOutput
- func MockGetPolicyOutput(config config.Config, namespace, functionName string) *iam.GetPolicyOutput
- func MockGetRoleOutput(config config.Config, namespace, functionName string) *iam.GetRoleOutput
- func MockImageInspect(config config.Config, created *time.Time) dockertypes.ImageInspect
- type MockBuildService
- type MockFunctionService
- func (m *MockFunctionService) AttachPolicyToRole(ctx context.Context, policyArn, roleName string) (*iam.AttachRolePolicyOutput, error)
- func (m *MockFunctionService) DeleteFunction(ctx context.Context, name string) (*lambda.DeleteFunctionOutput, error)
- func (m *MockFunctionService) DeletePolicy(ctx context.Context, arn string) (*iam.DeletePolicyOutput, error)
- func (m *MockFunctionService) DeleteRole(ctx context.Context, name string) (*iam.DeleteRoleOutput, error)
- func (m *MockFunctionService) DetachPolicyFromRole(ctx context.Context, policyArn, roleName string) (*iam.DetachRolePolicyOutput, error)
- func (m *MockFunctionService) EnsureEniGcRole(ctx context.Context) (*iam.GetRoleOutput, error)
- func (m *MockFunctionService) GetRolePolicies(ctx context.Context, name string) (*iam.ListAttachedRolePoliciesOutput, error)
- func (m *MockFunctionService) Inspect(ctx context.Context, name string) (*lambda.GetFunctionOutput, error)
- func (m *MockFunctionService) List(ctx context.Context, prefix string) ([]lambda.GetFunctionOutput, error)
- func (m *MockFunctionService) PatchFunction(ctx context.Context, patch *lambda.UpdateFunctionConfigurationInput) (*lambda.GetFunctionConfigurationOutput, error)
- func (m *MockFunctionService) PutFunction(ctx context.Context, input *lambda.CreateFunctionInput, concurreny int32) (*lambda.GetFunctionOutput, error)
- func (m *MockFunctionService) PutPolicy(ctx context.Context, arn string, document string, tags map[string]string) (*iam.GetPolicyOutput, error)
- func (m *MockFunctionService) PutRole(ctx context.Context, name string, document string, tags map[string]string) (*iam.GetRoleOutput, error)
- type MockRegistryService
- func (m *MockRegistryService) Delete(ctx context.Context, registryId, repository string, imageDigests []string) error
- func (m *MockRegistryService) ImageUri(ctx context.Context, registryId, registryUrl, repository, tag string) (string, error)
- func (m *MockRegistryService) InspectByDigest(ctx context.Context, registryId, repository, digest string) (dockertypes.ImageInspect, error)
- func (m *MockRegistryService) InspectByTag(ctx context.Context, registryId, repository, tag string) (dockertypes.ImageInspect, error)
- func (m *MockRegistryService) List(ctx context.Context, registry, repository string) (ecr.DescribeImagesOutput, error)
- func (m *MockRegistryService) PutRepository(ctx context.Context, repositoryName string) error
- func (m *MockRegistryService) Untag(ctx context.Context, registryId, repository, tag string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockDescribeImagesOutput ¶
func MockDescribeImagesOutput() ecr.DescribeImagesOutput
func MockGetFunctionOutput ¶
func MockGetFunctionOutput(config config.Config, namespace, functionName string) *lambda.GetFunctionOutput
func MockGetPolicyOutput ¶
func MockGetPolicyOutput(config config.Config, namespace, functionName string) *iam.GetPolicyOutput
func MockGetRoleOutput ¶
func MockGetRoleOutput(config config.Config, namespace, functionName string) *iam.GetRoleOutput
func MockImageInspect ¶
func MockImageInspect(config config.Config, created *time.Time) dockertypes.ImageInspect
Types ¶
type MockBuildService ¶
MockBuildService is a mock of BuildService interface
func (*MockBuildService) InspectByTag ¶
func (m *MockBuildService) InspectByTag(ctx context.Context, registryUrl, repository, tag string) (types.ImageInspect, error)
type MockFunctionService ¶
MockFunctionService is a mock of FunctionService interface
func (*MockFunctionService) AttachPolicyToRole ¶
func (m *MockFunctionService) AttachPolicyToRole(ctx context.Context, policyArn, roleName string) (*iam.AttachRolePolicyOutput, error)
func (*MockFunctionService) DeleteFunction ¶
func (m *MockFunctionService) DeleteFunction(ctx context.Context, name string) (*lambda.DeleteFunctionOutput, error)
func (*MockFunctionService) DeletePolicy ¶
func (m *MockFunctionService) DeletePolicy(ctx context.Context, arn string) (*iam.DeletePolicyOutput, error)
func (*MockFunctionService) DeleteRole ¶
func (m *MockFunctionService) DeleteRole(ctx context.Context, name string) (*iam.DeleteRoleOutput, error)
func (*MockFunctionService) DetachPolicyFromRole ¶
func (m *MockFunctionService) DetachPolicyFromRole(ctx context.Context, policyArn, roleName string) (*iam.DetachRolePolicyOutput, error)
func (*MockFunctionService) EnsureEniGcRole ¶
func (m *MockFunctionService) EnsureEniGcRole(ctx context.Context) (*iam.GetRoleOutput, error)
func (*MockFunctionService) GetRolePolicies ¶
func (m *MockFunctionService) GetRolePolicies(ctx context.Context, name string) (*iam.ListAttachedRolePoliciesOutput, error)
func (*MockFunctionService) Inspect ¶
func (m *MockFunctionService) Inspect(ctx context.Context, name string) (*lambda.GetFunctionOutput, error)
func (*MockFunctionService) List ¶
func (m *MockFunctionService) List(ctx context.Context, prefix string) ([]lambda.GetFunctionOutput, error)
func (*MockFunctionService) PatchFunction ¶
func (m *MockFunctionService) PatchFunction(ctx context.Context, patch *lambda.UpdateFunctionConfigurationInput) (*lambda.GetFunctionConfigurationOutput, error)
func (*MockFunctionService) PutFunction ¶
func (m *MockFunctionService) PutFunction(ctx context.Context, input *lambda.CreateFunctionInput, concurreny int32) (*lambda.GetFunctionOutput, error)
type MockRegistryService ¶
func (*MockRegistryService) InspectByDigest ¶
func (m *MockRegistryService) InspectByDigest(ctx context.Context, registryId, repository, digest string) (dockertypes.ImageInspect, error)
func (*MockRegistryService) InspectByTag ¶
func (m *MockRegistryService) InspectByTag(ctx context.Context, registryId, repository, tag string) (dockertypes.ImageInspect, error)
func (*MockRegistryService) List ¶
func (m *MockRegistryService) List(ctx context.Context, registry, repository string) (ecr.DescribeImagesOutput, error)
func (*MockRegistryService) PutRepository ¶
func (m *MockRegistryService) PutRepository(ctx context.Context, repositoryName string) error
Click to show internal directories.
Click to hide internal directories.