github.com/aavshr/aws-sdk-go@v1.41.3/service/appregistry/appregistryiface/interface.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 // Package appregistryiface provides an interface to enable mocking the AWS Service Catalog App Registry service client 4 // for testing your code. 5 // 6 // It is important to note that this interface will have breaking changes 7 // when the service model is updated and adds new API operations, paginators, 8 // and waiters. 9 package appregistryiface 10 11 import ( 12 "github.com/aavshr/aws-sdk-go/aws" 13 "github.com/aavshr/aws-sdk-go/aws/request" 14 "github.com/aavshr/aws-sdk-go/service/appregistry" 15 ) 16 17 // AppRegistryAPI provides an interface to enable mocking the 18 // appregistry.AppRegistry service client's API operation, 19 // paginators, and waiters. This make unit testing your code that calls out 20 // to the SDK's service client's calls easier. 21 // 22 // The best way to use this interface is so the SDK's service client's calls 23 // can be stubbed out for unit testing your code with the SDK without needing 24 // to inject custom request handlers into the SDK's request pipeline. 25 // 26 // // myFunc uses an SDK service client to make a request to 27 // // AWS Service Catalog App Registry. 28 // func myFunc(svc appregistryiface.AppRegistryAPI) bool { 29 // // Make svc.AssociateAttributeGroup request 30 // } 31 // 32 // func main() { 33 // sess := session.New() 34 // svc := appregistry.New(sess) 35 // 36 // myFunc(svc) 37 // } 38 // 39 // In your _test.go file: 40 // 41 // // Define a mock struct to be used in your unit tests of myFunc. 42 // type mockAppRegistryClient struct { 43 // appregistryiface.AppRegistryAPI 44 // } 45 // func (m *mockAppRegistryClient) AssociateAttributeGroup(input *appregistry.AssociateAttributeGroupInput) (*appregistry.AssociateAttributeGroupOutput, error) { 46 // // mock response/functionality 47 // } 48 // 49 // func TestMyFunc(t *testing.T) { 50 // // Setup Test 51 // mockSvc := &mockAppRegistryClient{} 52 // 53 // myfunc(mockSvc) 54 // 55 // // Verify myFunc's functionality 56 // } 57 // 58 // It is important to note that this interface will have breaking changes 59 // when the service model is updated and adds new API operations, paginators, 60 // and waiters. Its suggested to use the pattern above for testing, or using 61 // tooling to generate mocks to satisfy the interfaces. 62 type AppRegistryAPI interface { 63 AssociateAttributeGroup(*appregistry.AssociateAttributeGroupInput) (*appregistry.AssociateAttributeGroupOutput, error) 64 AssociateAttributeGroupWithContext(aws.Context, *appregistry.AssociateAttributeGroupInput, ...request.Option) (*appregistry.AssociateAttributeGroupOutput, error) 65 AssociateAttributeGroupRequest(*appregistry.AssociateAttributeGroupInput) (*request.Request, *appregistry.AssociateAttributeGroupOutput) 66 67 AssociateResource(*appregistry.AssociateResourceInput) (*appregistry.AssociateResourceOutput, error) 68 AssociateResourceWithContext(aws.Context, *appregistry.AssociateResourceInput, ...request.Option) (*appregistry.AssociateResourceOutput, error) 69 AssociateResourceRequest(*appregistry.AssociateResourceInput) (*request.Request, *appregistry.AssociateResourceOutput) 70 71 CreateApplication(*appregistry.CreateApplicationInput) (*appregistry.CreateApplicationOutput, error) 72 CreateApplicationWithContext(aws.Context, *appregistry.CreateApplicationInput, ...request.Option) (*appregistry.CreateApplicationOutput, error) 73 CreateApplicationRequest(*appregistry.CreateApplicationInput) (*request.Request, *appregistry.CreateApplicationOutput) 74 75 CreateAttributeGroup(*appregistry.CreateAttributeGroupInput) (*appregistry.CreateAttributeGroupOutput, error) 76 CreateAttributeGroupWithContext(aws.Context, *appregistry.CreateAttributeGroupInput, ...request.Option) (*appregistry.CreateAttributeGroupOutput, error) 77 CreateAttributeGroupRequest(*appregistry.CreateAttributeGroupInput) (*request.Request, *appregistry.CreateAttributeGroupOutput) 78 79 DeleteApplication(*appregistry.DeleteApplicationInput) (*appregistry.DeleteApplicationOutput, error) 80 DeleteApplicationWithContext(aws.Context, *appregistry.DeleteApplicationInput, ...request.Option) (*appregistry.DeleteApplicationOutput, error) 81 DeleteApplicationRequest(*appregistry.DeleteApplicationInput) (*request.Request, *appregistry.DeleteApplicationOutput) 82 83 DeleteAttributeGroup(*appregistry.DeleteAttributeGroupInput) (*appregistry.DeleteAttributeGroupOutput, error) 84 DeleteAttributeGroupWithContext(aws.Context, *appregistry.DeleteAttributeGroupInput, ...request.Option) (*appregistry.DeleteAttributeGroupOutput, error) 85 DeleteAttributeGroupRequest(*appregistry.DeleteAttributeGroupInput) (*request.Request, *appregistry.DeleteAttributeGroupOutput) 86 87 DisassociateAttributeGroup(*appregistry.DisassociateAttributeGroupInput) (*appregistry.DisassociateAttributeGroupOutput, error) 88 DisassociateAttributeGroupWithContext(aws.Context, *appregistry.DisassociateAttributeGroupInput, ...request.Option) (*appregistry.DisassociateAttributeGroupOutput, error) 89 DisassociateAttributeGroupRequest(*appregistry.DisassociateAttributeGroupInput) (*request.Request, *appregistry.DisassociateAttributeGroupOutput) 90 91 DisassociateResource(*appregistry.DisassociateResourceInput) (*appregistry.DisassociateResourceOutput, error) 92 DisassociateResourceWithContext(aws.Context, *appregistry.DisassociateResourceInput, ...request.Option) (*appregistry.DisassociateResourceOutput, error) 93 DisassociateResourceRequest(*appregistry.DisassociateResourceInput) (*request.Request, *appregistry.DisassociateResourceOutput) 94 95 GetApplication(*appregistry.GetApplicationInput) (*appregistry.GetApplicationOutput, error) 96 GetApplicationWithContext(aws.Context, *appregistry.GetApplicationInput, ...request.Option) (*appregistry.GetApplicationOutput, error) 97 GetApplicationRequest(*appregistry.GetApplicationInput) (*request.Request, *appregistry.GetApplicationOutput) 98 99 GetAssociatedResource(*appregistry.GetAssociatedResourceInput) (*appregistry.GetAssociatedResourceOutput, error) 100 GetAssociatedResourceWithContext(aws.Context, *appregistry.GetAssociatedResourceInput, ...request.Option) (*appregistry.GetAssociatedResourceOutput, error) 101 GetAssociatedResourceRequest(*appregistry.GetAssociatedResourceInput) (*request.Request, *appregistry.GetAssociatedResourceOutput) 102 103 GetAttributeGroup(*appregistry.GetAttributeGroupInput) (*appregistry.GetAttributeGroupOutput, error) 104 GetAttributeGroupWithContext(aws.Context, *appregistry.GetAttributeGroupInput, ...request.Option) (*appregistry.GetAttributeGroupOutput, error) 105 GetAttributeGroupRequest(*appregistry.GetAttributeGroupInput) (*request.Request, *appregistry.GetAttributeGroupOutput) 106 107 ListApplications(*appregistry.ListApplicationsInput) (*appregistry.ListApplicationsOutput, error) 108 ListApplicationsWithContext(aws.Context, *appregistry.ListApplicationsInput, ...request.Option) (*appregistry.ListApplicationsOutput, error) 109 ListApplicationsRequest(*appregistry.ListApplicationsInput) (*request.Request, *appregistry.ListApplicationsOutput) 110 111 ListApplicationsPages(*appregistry.ListApplicationsInput, func(*appregistry.ListApplicationsOutput, bool) bool) error 112 ListApplicationsPagesWithContext(aws.Context, *appregistry.ListApplicationsInput, func(*appregistry.ListApplicationsOutput, bool) bool, ...request.Option) error 113 114 ListAssociatedAttributeGroups(*appregistry.ListAssociatedAttributeGroupsInput) (*appregistry.ListAssociatedAttributeGroupsOutput, error) 115 ListAssociatedAttributeGroupsWithContext(aws.Context, *appregistry.ListAssociatedAttributeGroupsInput, ...request.Option) (*appregistry.ListAssociatedAttributeGroupsOutput, error) 116 ListAssociatedAttributeGroupsRequest(*appregistry.ListAssociatedAttributeGroupsInput) (*request.Request, *appregistry.ListAssociatedAttributeGroupsOutput) 117 118 ListAssociatedAttributeGroupsPages(*appregistry.ListAssociatedAttributeGroupsInput, func(*appregistry.ListAssociatedAttributeGroupsOutput, bool) bool) error 119 ListAssociatedAttributeGroupsPagesWithContext(aws.Context, *appregistry.ListAssociatedAttributeGroupsInput, func(*appregistry.ListAssociatedAttributeGroupsOutput, bool) bool, ...request.Option) error 120 121 ListAssociatedResources(*appregistry.ListAssociatedResourcesInput) (*appregistry.ListAssociatedResourcesOutput, error) 122 ListAssociatedResourcesWithContext(aws.Context, *appregistry.ListAssociatedResourcesInput, ...request.Option) (*appregistry.ListAssociatedResourcesOutput, error) 123 ListAssociatedResourcesRequest(*appregistry.ListAssociatedResourcesInput) (*request.Request, *appregistry.ListAssociatedResourcesOutput) 124 125 ListAssociatedResourcesPages(*appregistry.ListAssociatedResourcesInput, func(*appregistry.ListAssociatedResourcesOutput, bool) bool) error 126 ListAssociatedResourcesPagesWithContext(aws.Context, *appregistry.ListAssociatedResourcesInput, func(*appregistry.ListAssociatedResourcesOutput, bool) bool, ...request.Option) error 127 128 ListAttributeGroups(*appregistry.ListAttributeGroupsInput) (*appregistry.ListAttributeGroupsOutput, error) 129 ListAttributeGroupsWithContext(aws.Context, *appregistry.ListAttributeGroupsInput, ...request.Option) (*appregistry.ListAttributeGroupsOutput, error) 130 ListAttributeGroupsRequest(*appregistry.ListAttributeGroupsInput) (*request.Request, *appregistry.ListAttributeGroupsOutput) 131 132 ListAttributeGroupsPages(*appregistry.ListAttributeGroupsInput, func(*appregistry.ListAttributeGroupsOutput, bool) bool) error 133 ListAttributeGroupsPagesWithContext(aws.Context, *appregistry.ListAttributeGroupsInput, func(*appregistry.ListAttributeGroupsOutput, bool) bool, ...request.Option) error 134 135 ListTagsForResource(*appregistry.ListTagsForResourceInput) (*appregistry.ListTagsForResourceOutput, error) 136 ListTagsForResourceWithContext(aws.Context, *appregistry.ListTagsForResourceInput, ...request.Option) (*appregistry.ListTagsForResourceOutput, error) 137 ListTagsForResourceRequest(*appregistry.ListTagsForResourceInput) (*request.Request, *appregistry.ListTagsForResourceOutput) 138 139 SyncResource(*appregistry.SyncResourceInput) (*appregistry.SyncResourceOutput, error) 140 SyncResourceWithContext(aws.Context, *appregistry.SyncResourceInput, ...request.Option) (*appregistry.SyncResourceOutput, error) 141 SyncResourceRequest(*appregistry.SyncResourceInput) (*request.Request, *appregistry.SyncResourceOutput) 142 143 TagResource(*appregistry.TagResourceInput) (*appregistry.TagResourceOutput, error) 144 TagResourceWithContext(aws.Context, *appregistry.TagResourceInput, ...request.Option) (*appregistry.TagResourceOutput, error) 145 TagResourceRequest(*appregistry.TagResourceInput) (*request.Request, *appregistry.TagResourceOutput) 146 147 UntagResource(*appregistry.UntagResourceInput) (*appregistry.UntagResourceOutput, error) 148 UntagResourceWithContext(aws.Context, *appregistry.UntagResourceInput, ...request.Option) (*appregistry.UntagResourceOutput, error) 149 UntagResourceRequest(*appregistry.UntagResourceInput) (*request.Request, *appregistry.UntagResourceOutput) 150 151 UpdateApplication(*appregistry.UpdateApplicationInput) (*appregistry.UpdateApplicationOutput, error) 152 UpdateApplicationWithContext(aws.Context, *appregistry.UpdateApplicationInput, ...request.Option) (*appregistry.UpdateApplicationOutput, error) 153 UpdateApplicationRequest(*appregistry.UpdateApplicationInput) (*request.Request, *appregistry.UpdateApplicationOutput) 154 155 UpdateAttributeGroup(*appregistry.UpdateAttributeGroupInput) (*appregistry.UpdateAttributeGroupOutput, error) 156 UpdateAttributeGroupWithContext(aws.Context, *appregistry.UpdateAttributeGroupInput, ...request.Option) (*appregistry.UpdateAttributeGroupOutput, error) 157 UpdateAttributeGroupRequest(*appregistry.UpdateAttributeGroupInput) (*request.Request, *appregistry.UpdateAttributeGroupOutput) 158 } 159 160 var _ AppRegistryAPI = (*appregistry.AppRegistry)(nil)