id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
sequencelengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
sequencelengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
200
aws/aws-sdk-go
service/codecommit/api.go
SetCloneUrlSsh
func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata { s.CloneUrlSsh = &v return s }
go
func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata { s.CloneUrlSsh = &v return s }
[ "func", "(", "s", "*", "RepositoryMetadata", ")", "SetCloneUrlSsh", "(", "v", "string", ")", "*", "RepositoryMetadata", "{", "s", ".", "CloneUrlSsh", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCloneUrlSsh sets the CloneUrlSsh field's value.
[ "SetCloneUrlSsh", "sets", "the", "CloneUrlSsh", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codecommit/api.go#L10351-L10354
201
aws/aws-sdk-go
service/codecommit/api.go
SetDefaultBranch
func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata { s.DefaultBranch = &v return s }
go
func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata { s.DefaultBranch = &v return s }
[ "func", "(", "s", "*", "RepositoryMetadata", ")", "SetDefaultBranch", "(", "v", "string", ")", "*", "RepositoryMetadata", "{", "s", ".", "DefaultBranch", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDefaultBranch sets the DefaultBranch field's value.
[ "SetDefaultBranch", "sets", "the", "DefaultBranch", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codecommit/api.go#L10363-L10366
202
aws/aws-sdk-go
service/codecommit/api.go
SetCustomData
func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger { s.CustomData = &v return s }
go
func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger { s.CustomData = &v return s }
[ "func", "(", "s", "*", "RepositoryTrigger", ")", "SetCustomData", "(", "v", "string", ")", "*", "RepositoryTrigger", "{", "s", ".", "CustomData", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCustomData sets the CustomData field's value.
[ "SetCustomData", "sets", "the", "CustomData", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codecommit/api.go#L10496-L10499
203
aws/aws-sdk-go
service/codecommit/api.go
SetIsMove
func (s *SourceFileSpecifier) SetIsMove(v bool) *SourceFileSpecifier { s.IsMove = &v return s }
go
func (s *SourceFileSpecifier) SetIsMove(v bool) *SourceFileSpecifier { s.IsMove = &v return s }
[ "func", "(", "s", "*", "SourceFileSpecifier", ")", "SetIsMove", "(", "v", "bool", ")", "*", "SourceFileSpecifier", "{", "s", ".", "IsMove", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIsMove sets the IsMove field's value.
[ "SetIsMove", "sets", "the", "IsMove", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codecommit/api.go#L10648-L10651
204
aws/aws-sdk-go
service/codecommit/api.go
SetFailedExecutions
func (s *TestRepositoryTriggersOutput) SetFailedExecutions(v []*RepositoryTriggerExecutionFailure) *TestRepositoryTriggersOutput { s.FailedExecutions = v return s }
go
func (s *TestRepositoryTriggersOutput) SetFailedExecutions(v []*RepositoryTriggerExecutionFailure) *TestRepositoryTriggersOutput { s.FailedExecutions = v return s }
[ "func", "(", "s", "*", "TestRepositoryTriggersOutput", ")", "SetFailedExecutions", "(", "v", "[", "]", "*", "RepositoryTriggerExecutionFailure", ")", "*", "TestRepositoryTriggersOutput", "{", "s", ".", "FailedExecutions", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetFailedExecutions sets the FailedExecutions field's value.
[ "SetFailedExecutions", "sets", "the", "FailedExecutions", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codecommit/api.go#L10905-L10908
205
aws/aws-sdk-go
service/codecommit/api.go
SetSuccessfulExecutions
func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *TestRepositoryTriggersOutput { s.SuccessfulExecutions = v return s }
go
func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *TestRepositoryTriggersOutput { s.SuccessfulExecutions = v return s }
[ "func", "(", "s", "*", "TestRepositoryTriggersOutput", ")", "SetSuccessfulExecutions", "(", "v", "[", "]", "*", "string", ")", "*", "TestRepositoryTriggersOutput", "{", "s", ".", "SuccessfulExecutions", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSuccessfulExecutions sets the SuccessfulExecutions field's value.
[ "SetSuccessfulExecutions", "sets", "the", "SuccessfulExecutions", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codecommit/api.go#L10911-L10914
206
aws/aws-sdk-go
service/codecommit/api.go
SetDefaultBranchName
func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput { s.DefaultBranchName = &v return s }
go
func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput { s.DefaultBranchName = &v return s }
[ "func", "(", "s", "*", "UpdateDefaultBranchInput", ")", "SetDefaultBranchName", "(", "v", "string", ")", "*", "UpdateDefaultBranchInput", "{", "s", ".", "DefaultBranchName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDefaultBranchName sets the DefaultBranchName field's value.
[ "SetDefaultBranchName", "sets", "the", "DefaultBranchName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codecommit/api.go#L11041-L11044
207
aws/aws-sdk-go
service/codecommit/api.go
SetNewName
func (s *UpdateRepositoryNameInput) SetNewName(v string) *UpdateRepositoryNameInput { s.NewName = &v return s }
go
func (s *UpdateRepositoryNameInput) SetNewName(v string) *UpdateRepositoryNameInput { s.NewName = &v return s }
[ "func", "(", "s", "*", "UpdateRepositoryNameInput", ")", "SetNewName", "(", "v", "string", ")", "*", "UpdateRepositoryNameInput", "{", "s", ".", "NewName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNewName sets the NewName field's value.
[ "SetNewName", "sets", "the", "NewName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codecommit/api.go#L11413-L11416
208
aws/aws-sdk-go
service/codecommit/api.go
SetOldName
func (s *UpdateRepositoryNameInput) SetOldName(v string) *UpdateRepositoryNameInput { s.OldName = &v return s }
go
func (s *UpdateRepositoryNameInput) SetOldName(v string) *UpdateRepositoryNameInput { s.OldName = &v return s }
[ "func", "(", "s", "*", "UpdateRepositoryNameInput", ")", "SetOldName", "(", "v", "string", ")", "*", "UpdateRepositoryNameInput", "{", "s", ".", "OldName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOldName sets the OldName field's value.
[ "SetOldName", "sets", "the", "OldName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codecommit/api.go#L11419-L11422
209
aws/aws-sdk-go
service/snowball/api.go
SetCompany
func (s *Address) SetCompany(v string) *Address { s.Company = &v return s }
go
func (s *Address) SetCompany(v string) *Address { s.Company = &v return s }
[ "func", "(", "s", "*", "Address", ")", "SetCompany", "(", "v", "string", ")", "*", "Address", "{", "s", ".", "Company", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCompany sets the Company field's value.
[ "SetCompany", "sets", "the", "Company", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L1872-L1875
210
aws/aws-sdk-go
service/snowball/api.go
SetIsRestricted
func (s *Address) SetIsRestricted(v bool) *Address { s.IsRestricted = &v return s }
go
func (s *Address) SetIsRestricted(v bool) *Address { s.IsRestricted = &v return s }
[ "func", "(", "s", "*", "Address", ")", "SetIsRestricted", "(", "v", "bool", ")", "*", "Address", "{", "s", ".", "IsRestricted", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIsRestricted sets the IsRestricted field's value.
[ "SetIsRestricted", "sets", "the", "IsRestricted", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L1884-L1887
211
aws/aws-sdk-go
service/snowball/api.go
SetLandmark
func (s *Address) SetLandmark(v string) *Address { s.Landmark = &v return s }
go
func (s *Address) SetLandmark(v string) *Address { s.Landmark = &v return s }
[ "func", "(", "s", "*", "Address", ")", "SetLandmark", "(", "v", "string", ")", "*", "Address", "{", "s", ".", "Landmark", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLandmark sets the Landmark field's value.
[ "SetLandmark", "sets", "the", "Landmark", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L1890-L1893
212
aws/aws-sdk-go
service/snowball/api.go
SetPrefectureOrDistrict
func (s *Address) SetPrefectureOrDistrict(v string) *Address { s.PrefectureOrDistrict = &v return s }
go
func (s *Address) SetPrefectureOrDistrict(v string) *Address { s.PrefectureOrDistrict = &v return s }
[ "func", "(", "s", "*", "Address", ")", "SetPrefectureOrDistrict", "(", "v", "string", ")", "*", "Address", "{", "s", ".", "PrefectureOrDistrict", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPrefectureOrDistrict sets the PrefectureOrDistrict field's value.
[ "SetPrefectureOrDistrict", "sets", "the", "PrefectureOrDistrict", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L1914-L1917
213
aws/aws-sdk-go
service/snowball/api.go
SetStateOrProvince
func (s *Address) SetStateOrProvince(v string) *Address { s.StateOrProvince = &v return s }
go
func (s *Address) SetStateOrProvince(v string) *Address { s.StateOrProvince = &v return s }
[ "func", "(", "s", "*", "Address", ")", "SetStateOrProvince", "(", "v", "string", ")", "*", "Address", "{", "s", ".", "StateOrProvince", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStateOrProvince sets the StateOrProvince field's value.
[ "SetStateOrProvince", "sets", "the", "StateOrProvince", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L1920-L1923
214
aws/aws-sdk-go
service/snowball/api.go
SetStreet1
func (s *Address) SetStreet1(v string) *Address { s.Street1 = &v return s }
go
func (s *Address) SetStreet1(v string) *Address { s.Street1 = &v return s }
[ "func", "(", "s", "*", "Address", ")", "SetStreet1", "(", "v", "string", ")", "*", "Address", "{", "s", ".", "Street1", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStreet1 sets the Street1 field's value.
[ "SetStreet1", "sets", "the", "Street1", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L1926-L1929
215
aws/aws-sdk-go
service/snowball/api.go
SetStreet2
func (s *Address) SetStreet2(v string) *Address { s.Street2 = &v return s }
go
func (s *Address) SetStreet2(v string) *Address { s.Street2 = &v return s }
[ "func", "(", "s", "*", "Address", ")", "SetStreet2", "(", "v", "string", ")", "*", "Address", "{", "s", ".", "Street2", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStreet2 sets the Street2 field's value.
[ "SetStreet2", "sets", "the", "Street2", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L1932-L1935
216
aws/aws-sdk-go
service/snowball/api.go
SetStreet3
func (s *Address) SetStreet3(v string) *Address { s.Street3 = &v return s }
go
func (s *Address) SetStreet3(v string) *Address { s.Street3 = &v return s }
[ "func", "(", "s", "*", "Address", ")", "SetStreet3", "(", "v", "string", ")", "*", "Address", "{", "s", ".", "Street3", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStreet3 sets the Street3 field's value.
[ "SetStreet3", "sets", "the", "Street3", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L1938-L1941
217
aws/aws-sdk-go
service/snowball/api.go
SetObjectsTransferred
func (s *DataTransfer) SetObjectsTransferred(v int64) *DataTransfer { s.ObjectsTransferred = &v return s }
go
func (s *DataTransfer) SetObjectsTransferred(v int64) *DataTransfer { s.ObjectsTransferred = &v return s }
[ "func", "(", "s", "*", "DataTransfer", ")", "SetObjectsTransferred", "(", "v", "int64", ")", "*", "DataTransfer", "{", "s", ".", "ObjectsTransferred", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetObjectsTransferred sets the ObjectsTransferred field's value.
[ "SetObjectsTransferred", "sets", "the", "ObjectsTransferred", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L2816-L2819
218
aws/aws-sdk-go
service/snowball/api.go
SetTotalBytes
func (s *DataTransfer) SetTotalBytes(v int64) *DataTransfer { s.TotalBytes = &v return s }
go
func (s *DataTransfer) SetTotalBytes(v int64) *DataTransfer { s.TotalBytes = &v return s }
[ "func", "(", "s", "*", "DataTransfer", ")", "SetTotalBytes", "(", "v", "int64", ")", "*", "DataTransfer", "{", "s", ".", "TotalBytes", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTotalBytes sets the TotalBytes field's value.
[ "SetTotalBytes", "sets", "the", "TotalBytes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L2822-L2825
219
aws/aws-sdk-go
service/snowball/api.go
SetTotalObjects
func (s *DataTransfer) SetTotalObjects(v int64) *DataTransfer { s.TotalObjects = &v return s }
go
func (s *DataTransfer) SetTotalObjects(v int64) *DataTransfer { s.TotalObjects = &v return s }
[ "func", "(", "s", "*", "DataTransfer", ")", "SetTotalObjects", "(", "v", "int64", ")", "*", "DataTransfer", "{", "s", ".", "TotalObjects", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTotalObjects sets the TotalObjects field's value.
[ "SetTotalObjects", "sets", "the", "TotalObjects", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L2828-L2831
220
aws/aws-sdk-go
service/snowball/api.go
SetClusterMetadata
func (s *DescribeClusterOutput) SetClusterMetadata(v *ClusterMetadata) *DescribeClusterOutput { s.ClusterMetadata = v return s }
go
func (s *DescribeClusterOutput) SetClusterMetadata(v *ClusterMetadata) *DescribeClusterOutput { s.ClusterMetadata = v return s }
[ "func", "(", "s", "*", "DescribeClusterOutput", ")", "SetClusterMetadata", "(", "v", "*", "ClusterMetadata", ")", "*", "DescribeClusterOutput", "{", "s", ".", "ClusterMetadata", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetClusterMetadata sets the ClusterMetadata field's value.
[ "SetClusterMetadata", "sets", "the", "ClusterMetadata", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3039-L3042
221
aws/aws-sdk-go
service/snowball/api.go
SetJobMetadata
func (s *DescribeJobOutput) SetJobMetadata(v *JobMetadata) *DescribeJobOutput { s.JobMetadata = v return s }
go
func (s *DescribeJobOutput) SetJobMetadata(v *JobMetadata) *DescribeJobOutput { s.JobMetadata = v return s }
[ "func", "(", "s", "*", "DescribeJobOutput", ")", "SetJobMetadata", "(", "v", "*", "JobMetadata", ")", "*", "DescribeJobOutput", "{", "s", ".", "JobMetadata", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetJobMetadata sets the JobMetadata field's value.
[ "SetJobMetadata", "sets", "the", "JobMetadata", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3108-L3111
222
aws/aws-sdk-go
service/snowball/api.go
SetSubJobMetadata
func (s *DescribeJobOutput) SetSubJobMetadata(v []*JobMetadata) *DescribeJobOutput { s.SubJobMetadata = v return s }
go
func (s *DescribeJobOutput) SetSubJobMetadata(v []*JobMetadata) *DescribeJobOutput { s.SubJobMetadata = v return s }
[ "func", "(", "s", "*", "DescribeJobOutput", ")", "SetSubJobMetadata", "(", "v", "[", "]", "*", "JobMetadata", ")", "*", "DescribeJobOutput", "{", "s", ".", "SubJobMetadata", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSubJobMetadata sets the SubJobMetadata field's value.
[ "SetSubJobMetadata", "sets", "the", "SubJobMetadata", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3114-L3117
223
aws/aws-sdk-go
service/snowball/api.go
SetSnowballAmiId
func (s *Ec2AmiResource) SetSnowballAmiId(v string) *Ec2AmiResource { s.SnowballAmiId = &v return s }
go
func (s *Ec2AmiResource) SetSnowballAmiId(v string) *Ec2AmiResource { s.SnowballAmiId = &v return s }
[ "func", "(", "s", "*", "Ec2AmiResource", ")", "SetSnowballAmiId", "(", "v", "string", ")", "*", "Ec2AmiResource", "{", "s", ".", "SnowballAmiId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSnowballAmiId sets the SnowballAmiId field's value.
[ "SetSnowballAmiId", "sets", "the", "SnowballAmiId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3171-L3174
224
aws/aws-sdk-go
service/snowball/api.go
SetEventResourceARN
func (s *EventTriggerDefinition) SetEventResourceARN(v string) *EventTriggerDefinition { s.EventResourceARN = &v return s }
go
func (s *EventTriggerDefinition) SetEventResourceARN(v string) *EventTriggerDefinition { s.EventResourceARN = &v return s }
[ "func", "(", "s", "*", "EventTriggerDefinition", ")", "SetEventResourceARN", "(", "v", "string", ")", "*", "EventTriggerDefinition", "{", "s", ".", "EventResourceARN", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEventResourceARN sets the EventResourceARN field's value.
[ "SetEventResourceARN", "sets", "the", "EventResourceARN", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3196-L3199
225
aws/aws-sdk-go
service/snowball/api.go
SetManifestURI
func (s *GetJobManifestOutput) SetManifestURI(v string) *GetJobManifestOutput { s.ManifestURI = &v return s }
go
func (s *GetJobManifestOutput) SetManifestURI(v string) *GetJobManifestOutput { s.ManifestURI = &v return s }
[ "func", "(", "s", "*", "GetJobManifestOutput", ")", "SetManifestURI", "(", "v", "string", ")", "*", "GetJobManifestOutput", "{", "s", ".", "ManifestURI", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetManifestURI sets the ManifestURI field's value.
[ "SetManifestURI", "sets", "the", "ManifestURI", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3262-L3265
226
aws/aws-sdk-go
service/snowball/api.go
SetUnlockCode
func (s *GetJobUnlockCodeOutput) SetUnlockCode(v string) *GetJobUnlockCodeOutput { s.UnlockCode = &v return s }
go
func (s *GetJobUnlockCodeOutput) SetUnlockCode(v string) *GetJobUnlockCodeOutput { s.UnlockCode = &v return s }
[ "func", "(", "s", "*", "GetJobUnlockCodeOutput", ")", "SetUnlockCode", "(", "v", "string", ")", "*", "GetJobUnlockCodeOutput", "{", "s", ".", "UnlockCode", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUnlockCode sets the UnlockCode field's value.
[ "SetUnlockCode", "sets", "the", "UnlockCode", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3328-L3331
227
aws/aws-sdk-go
service/snowball/api.go
SetSnowballLimit
func (s *GetSnowballUsageOutput) SetSnowballLimit(v int64) *GetSnowballUsageOutput { s.SnowballLimit = &v return s }
go
func (s *GetSnowballUsageOutput) SetSnowballLimit(v int64) *GetSnowballUsageOutput { s.SnowballLimit = &v return s }
[ "func", "(", "s", "*", "GetSnowballUsageOutput", ")", "SetSnowballLimit", "(", "v", "int64", ")", "*", "GetSnowballUsageOutput", "{", "s", ".", "SnowballLimit", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSnowballLimit sets the SnowballLimit field's value.
[ "SetSnowballLimit", "sets", "the", "SnowballLimit", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3369-L3372
228
aws/aws-sdk-go
service/snowball/api.go
SetSnowballsInUse
func (s *GetSnowballUsageOutput) SetSnowballsInUse(v int64) *GetSnowballUsageOutput { s.SnowballsInUse = &v return s }
go
func (s *GetSnowballUsageOutput) SetSnowballsInUse(v int64) *GetSnowballUsageOutput { s.SnowballsInUse = &v return s }
[ "func", "(", "s", "*", "GetSnowballUsageOutput", ")", "SetSnowballsInUse", "(", "v", "int64", ")", "*", "GetSnowballUsageOutput", "{", "s", ".", "SnowballsInUse", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSnowballsInUse sets the SnowballsInUse field's value.
[ "SetSnowballsInUse", "sets", "the", "SnowballsInUse", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3375-L3378
229
aws/aws-sdk-go
service/snowball/api.go
SetIsMaster
func (s *JobListEntry) SetIsMaster(v bool) *JobListEntry { s.IsMaster = &v return s }
go
func (s *JobListEntry) SetIsMaster(v bool) *JobListEntry { s.IsMaster = &v return s }
[ "func", "(", "s", "*", "JobListEntry", ")", "SetIsMaster", "(", "v", "bool", ")", "*", "JobListEntry", "{", "s", ".", "IsMaster", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIsMaster sets the IsMaster field's value.
[ "SetIsMaster", "sets", "the", "IsMaster", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3436-L3439
230
aws/aws-sdk-go
service/snowball/api.go
SetJobCompletionReportURI
func (s *JobLogs) SetJobCompletionReportURI(v string) *JobLogs { s.JobCompletionReportURI = &v return s }
go
func (s *JobLogs) SetJobCompletionReportURI(v string) *JobLogs { s.JobCompletionReportURI = &v return s }
[ "func", "(", "s", "*", "JobLogs", ")", "SetJobCompletionReportURI", "(", "v", "string", ")", "*", "JobLogs", "{", "s", ".", "JobCompletionReportURI", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetJobCompletionReportURI sets the JobCompletionReportURI field's value.
[ "SetJobCompletionReportURI", "sets", "the", "JobCompletionReportURI", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3509-L3512
231
aws/aws-sdk-go
service/snowball/api.go
SetJobFailureLogURI
func (s *JobLogs) SetJobFailureLogURI(v string) *JobLogs { s.JobFailureLogURI = &v return s }
go
func (s *JobLogs) SetJobFailureLogURI(v string) *JobLogs { s.JobFailureLogURI = &v return s }
[ "func", "(", "s", "*", "JobLogs", ")", "SetJobFailureLogURI", "(", "v", "string", ")", "*", "JobLogs", "{", "s", ".", "JobFailureLogURI", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetJobFailureLogURI sets the JobFailureLogURI field's value.
[ "SetJobFailureLogURI", "sets", "the", "JobFailureLogURI", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3515-L3518
232
aws/aws-sdk-go
service/snowball/api.go
SetJobSuccessLogURI
func (s *JobLogs) SetJobSuccessLogURI(v string) *JobLogs { s.JobSuccessLogURI = &v return s }
go
func (s *JobLogs) SetJobSuccessLogURI(v string) *JobLogs { s.JobSuccessLogURI = &v return s }
[ "func", "(", "s", "*", "JobLogs", ")", "SetJobSuccessLogURI", "(", "v", "string", ")", "*", "JobLogs", "{", "s", ".", "JobSuccessLogURI", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetJobSuccessLogURI sets the JobSuccessLogURI field's value.
[ "SetJobSuccessLogURI", "sets", "the", "JobSuccessLogURI", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3521-L3524
233
aws/aws-sdk-go
service/snowball/api.go
SetJobLogInfo
func (s *JobMetadata) SetJobLogInfo(v *JobLogs) *JobMetadata { s.JobLogInfo = v return s }
go
func (s *JobMetadata) SetJobLogInfo(v *JobLogs) *JobMetadata { s.JobLogInfo = v return s }
[ "func", "(", "s", "*", "JobMetadata", ")", "SetJobLogInfo", "(", "v", "*", "JobLogs", ")", "*", "JobMetadata", "{", "s", ".", "JobLogInfo", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetJobLogInfo sets the JobLogInfo field's value.
[ "SetJobLogInfo", "sets", "the", "JobLogInfo", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3654-L3657
234
aws/aws-sdk-go
service/snowball/api.go
SetShippingDetails
func (s *JobMetadata) SetShippingDetails(v *ShippingDetails) *JobMetadata { s.ShippingDetails = v return s }
go
func (s *JobMetadata) SetShippingDetails(v *ShippingDetails) *JobMetadata { s.ShippingDetails = v return s }
[ "func", "(", "s", "*", "JobMetadata", ")", "SetShippingDetails", "(", "v", "*", "ShippingDetails", ")", "*", "JobMetadata", "{", "s", ".", "ShippingDetails", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetShippingDetails sets the ShippingDetails field's value.
[ "SetShippingDetails", "sets", "the", "ShippingDetails", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3696-L3699
235
aws/aws-sdk-go
service/snowball/api.go
SetEc2AmiResources
func (s *JobResource) SetEc2AmiResources(v []*Ec2AmiResource) *JobResource { s.Ec2AmiResources = v return s }
go
func (s *JobResource) SetEc2AmiResources(v []*Ec2AmiResource) *JobResource { s.Ec2AmiResources = v return s }
[ "func", "(", "s", "*", "JobResource", ")", "SetEc2AmiResources", "(", "v", "[", "]", "*", "Ec2AmiResource", ")", "*", "JobResource", "{", "s", ".", "Ec2AmiResources", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetEc2AmiResources sets the Ec2AmiResources field's value.
[ "SetEc2AmiResources", "sets", "the", "Ec2AmiResources", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3770-L3773
236
aws/aws-sdk-go
service/snowball/api.go
SetLambdaResources
func (s *JobResource) SetLambdaResources(v []*LambdaResource) *JobResource { s.LambdaResources = v return s }
go
func (s *JobResource) SetLambdaResources(v []*LambdaResource) *JobResource { s.LambdaResources = v return s }
[ "func", "(", "s", "*", "JobResource", ")", "SetLambdaResources", "(", "v", "[", "]", "*", "LambdaResource", ")", "*", "JobResource", "{", "s", ".", "LambdaResources", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLambdaResources sets the LambdaResources field's value.
[ "SetLambdaResources", "sets", "the", "LambdaResources", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3776-L3779
237
aws/aws-sdk-go
service/snowball/api.go
SetBeginMarker
func (s *KeyRange) SetBeginMarker(v string) *KeyRange { s.BeginMarker = &v return s }
go
func (s *KeyRange) SetBeginMarker(v string) *KeyRange { s.BeginMarker = &v return s }
[ "func", "(", "s", "*", "KeyRange", ")", "SetBeginMarker", "(", "v", "string", ")", "*", "KeyRange", "{", "s", ".", "BeginMarker", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBeginMarker sets the BeginMarker field's value.
[ "SetBeginMarker", "sets", "the", "BeginMarker", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3830-L3833
238
aws/aws-sdk-go
service/snowball/api.go
SetEndMarker
func (s *KeyRange) SetEndMarker(v string) *KeyRange { s.EndMarker = &v return s }
go
func (s *KeyRange) SetEndMarker(v string) *KeyRange { s.EndMarker = &v return s }
[ "func", "(", "s", "*", "KeyRange", ")", "SetEndMarker", "(", "v", "string", ")", "*", "KeyRange", "{", "s", ".", "EndMarker", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEndMarker sets the EndMarker field's value.
[ "SetEndMarker", "sets", "the", "EndMarker", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3836-L3839
239
aws/aws-sdk-go
service/snowball/api.go
SetEventTriggers
func (s *LambdaResource) SetEventTriggers(v []*EventTriggerDefinition) *LambdaResource { s.EventTriggers = v return s }
go
func (s *LambdaResource) SetEventTriggers(v []*EventTriggerDefinition) *LambdaResource { s.EventTriggers = v return s }
[ "func", "(", "s", "*", "LambdaResource", ")", "SetEventTriggers", "(", "v", "[", "]", "*", "EventTriggerDefinition", ")", "*", "LambdaResource", "{", "s", ".", "EventTriggers", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetEventTriggers sets the EventTriggers field's value.
[ "SetEventTriggers", "sets", "the", "EventTriggers", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3865-L3868
240
aws/aws-sdk-go
service/snowball/api.go
SetLambdaArn
func (s *LambdaResource) SetLambdaArn(v string) *LambdaResource { s.LambdaArn = &v return s }
go
func (s *LambdaResource) SetLambdaArn(v string) *LambdaResource { s.LambdaArn = &v return s }
[ "func", "(", "s", "*", "LambdaResource", ")", "SetLambdaArn", "(", "v", "string", ")", "*", "LambdaResource", "{", "s", ".", "LambdaArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLambdaArn sets the LambdaArn field's value.
[ "SetLambdaArn", "sets", "the", "LambdaArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L3871-L3874
241
aws/aws-sdk-go
service/snowball/api.go
SetClusterListEntries
func (s *ListClustersOutput) SetClusterListEntries(v []*ClusterListEntry) *ListClustersOutput { s.ClusterListEntries = v return s }
go
func (s *ListClustersOutput) SetClusterListEntries(v []*ClusterListEntry) *ListClustersOutput { s.ClusterListEntries = v return s }
[ "func", "(", "s", "*", "ListClustersOutput", ")", "SetClusterListEntries", "(", "v", "[", "]", "*", "ClusterListEntry", ")", "*", "ListClustersOutput", "{", "s", ".", "ClusterListEntries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetClusterListEntries sets the ClusterListEntries field's value.
[ "SetClusterListEntries", "sets", "the", "ClusterListEntries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L4046-L4049
242
aws/aws-sdk-go
service/snowball/api.go
SetCompatibleImages
func (s *ListCompatibleImagesOutput) SetCompatibleImages(v []*CompatibleImage) *ListCompatibleImagesOutput { s.CompatibleImages = v return s }
go
func (s *ListCompatibleImagesOutput) SetCompatibleImages(v []*CompatibleImage) *ListCompatibleImagesOutput { s.CompatibleImages = v return s }
[ "func", "(", "s", "*", "ListCompatibleImagesOutput", ")", "SetCompatibleImages", "(", "v", "[", "]", "*", "CompatibleImage", ")", "*", "ListCompatibleImagesOutput", "{", "s", ".", "CompatibleImages", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCompatibleImages sets the CompatibleImages field's value.
[ "SetCompatibleImages", "sets", "the", "CompatibleImages", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L4127-L4130
243
aws/aws-sdk-go
service/snowball/api.go
SetJobStatesToNotify
func (s *Notification) SetJobStatesToNotify(v []*string) *Notification { s.JobStatesToNotify = v return s }
go
func (s *Notification) SetJobStatesToNotify(v []*string) *Notification { s.JobStatesToNotify = v return s }
[ "func", "(", "s", "*", "Notification", ")", "SetJobStatesToNotify", "(", "v", "[", "]", "*", "string", ")", "*", "Notification", "{", "s", ".", "JobStatesToNotify", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetJobStatesToNotify sets the JobStatesToNotify field's value.
[ "SetJobStatesToNotify", "sets", "the", "JobStatesToNotify", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L4259-L4262
244
aws/aws-sdk-go
service/snowball/api.go
SetNotifyAll
func (s *Notification) SetNotifyAll(v bool) *Notification { s.NotifyAll = &v return s }
go
func (s *Notification) SetNotifyAll(v bool) *Notification { s.NotifyAll = &v return s }
[ "func", "(", "s", "*", "Notification", ")", "SetNotifyAll", "(", "v", "bool", ")", "*", "Notification", "{", "s", ".", "NotifyAll", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNotifyAll sets the NotifyAll field's value.
[ "SetNotifyAll", "sets", "the", "NotifyAll", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L4265-L4268
245
aws/aws-sdk-go
service/snowball/api.go
SetBucketArn
func (s *S3Resource) SetBucketArn(v string) *S3Resource { s.BucketArn = &v return s }
go
func (s *S3Resource) SetBucketArn(v string) *S3Resource { s.BucketArn = &v return s }
[ "func", "(", "s", "*", "S3Resource", ")", "SetBucketArn", "(", "v", "string", ")", "*", "S3Resource", "{", "s", ".", "BucketArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetBucketArn sets the BucketArn field's value.
[ "SetBucketArn", "sets", "the", "BucketArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L4320-L4323
246
aws/aws-sdk-go
service/snowball/api.go
SetKeyRange
func (s *S3Resource) SetKeyRange(v *KeyRange) *S3Resource { s.KeyRange = v return s }
go
func (s *S3Resource) SetKeyRange(v *KeyRange) *S3Resource { s.KeyRange = v return s }
[ "func", "(", "s", "*", "S3Resource", ")", "SetKeyRange", "(", "v", "*", "KeyRange", ")", "*", "S3Resource", "{", "s", ".", "KeyRange", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetKeyRange sets the KeyRange field's value.
[ "SetKeyRange", "sets", "the", "KeyRange", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L4326-L4329
247
aws/aws-sdk-go
service/snowball/api.go
SetTrackingNumber
func (s *Shipment) SetTrackingNumber(v string) *Shipment { s.TrackingNumber = &v return s }
go
func (s *Shipment) SetTrackingNumber(v string) *Shipment { s.TrackingNumber = &v return s }
[ "func", "(", "s", "*", "Shipment", ")", "SetTrackingNumber", "(", "v", "string", ")", "*", "Shipment", "{", "s", ".", "TrackingNumber", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTrackingNumber sets the TrackingNumber field's value.
[ "SetTrackingNumber", "sets", "the", "TrackingNumber", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L4363-L4366
248
aws/aws-sdk-go
service/snowball/api.go
SetInboundShipment
func (s *ShippingDetails) SetInboundShipment(v *Shipment) *ShippingDetails { s.InboundShipment = v return s }
go
func (s *ShippingDetails) SetInboundShipment(v *Shipment) *ShippingDetails { s.InboundShipment = v return s }
[ "func", "(", "s", "*", "ShippingDetails", ")", "SetInboundShipment", "(", "v", "*", "Shipment", ")", "*", "ShippingDetails", "{", "s", ".", "InboundShipment", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetInboundShipment sets the InboundShipment field's value.
[ "SetInboundShipment", "sets", "the", "InboundShipment", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L4412-L4415
249
aws/aws-sdk-go
service/snowball/api.go
SetOutboundShipment
func (s *ShippingDetails) SetOutboundShipment(v *Shipment) *ShippingDetails { s.OutboundShipment = v return s }
go
func (s *ShippingDetails) SetOutboundShipment(v *Shipment) *ShippingDetails { s.OutboundShipment = v return s }
[ "func", "(", "s", "*", "ShippingDetails", ")", "SetOutboundShipment", "(", "v", "*", "Shipment", ")", "*", "ShippingDetails", "{", "s", ".", "OutboundShipment", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetOutboundShipment sets the OutboundShipment field's value.
[ "SetOutboundShipment", "sets", "the", "OutboundShipment", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/snowball/api.go#L4418-L4421
250
aws/aws-sdk-go
service/signer/waiters.go
WaitUntilSuccessfulSigningJob
func (c *Signer) WaitUntilSuccessfulSigningJob(input *DescribeSigningJobInput) error { return c.WaitUntilSuccessfulSigningJobWithContext(aws.BackgroundContext(), input) }
go
func (c *Signer) WaitUntilSuccessfulSigningJob(input *DescribeSigningJobInput) error { return c.WaitUntilSuccessfulSigningJobWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "Signer", ")", "WaitUntilSuccessfulSigningJob", "(", "input", "*", "DescribeSigningJobInput", ")", "error", "{", "return", "c", ".", "WaitUntilSuccessfulSigningJobWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilSuccessfulSigningJob uses the signer API operation // DescribeSigningJob to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilSuccessfulSigningJob", "uses", "the", "signer", "API", "operation", "DescribeSigningJob", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/signer/waiters.go#L16-L18
251
aws/aws-sdk-go
service/managedblockchain/api.go
SetProposalDurationInHours
func (s *ApprovalThresholdPolicy) SetProposalDurationInHours(v int64) *ApprovalThresholdPolicy { s.ProposalDurationInHours = &v return s }
go
func (s *ApprovalThresholdPolicy) SetProposalDurationInHours(v int64) *ApprovalThresholdPolicy { s.ProposalDurationInHours = &v return s }
[ "func", "(", "s", "*", "ApprovalThresholdPolicy", ")", "SetProposalDurationInHours", "(", "v", "int64", ")", "*", "ApprovalThresholdPolicy", "{", "s", ".", "ProposalDurationInHours", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetProposalDurationInHours sets the ProposalDurationInHours field's value.
[ "SetProposalDurationInHours", "sets", "the", "ProposalDurationInHours", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L2200-L2203
252
aws/aws-sdk-go
service/managedblockchain/api.go
SetThresholdComparator
func (s *ApprovalThresholdPolicy) SetThresholdComparator(v string) *ApprovalThresholdPolicy { s.ThresholdComparator = &v return s }
go
func (s *ApprovalThresholdPolicy) SetThresholdComparator(v string) *ApprovalThresholdPolicy { s.ThresholdComparator = &v return s }
[ "func", "(", "s", "*", "ApprovalThresholdPolicy", ")", "SetThresholdComparator", "(", "v", "string", ")", "*", "ApprovalThresholdPolicy", "{", "s", ".", "ThresholdComparator", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetThresholdComparator sets the ThresholdComparator field's value.
[ "SetThresholdComparator", "sets", "the", "ThresholdComparator", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L2206-L2209
253
aws/aws-sdk-go
service/managedblockchain/api.go
SetNodeConfiguration
func (s *CreateNodeInput) SetNodeConfiguration(v *NodeConfiguration) *CreateNodeInput { s.NodeConfiguration = v return s }
go
func (s *CreateNodeInput) SetNodeConfiguration(v *NodeConfiguration) *CreateNodeInput { s.NodeConfiguration = v return s }
[ "func", "(", "s", "*", "CreateNodeInput", ")", "SetNodeConfiguration", "(", "v", "*", "NodeConfiguration", ")", "*", "CreateNodeInput", "{", "s", ".", "NodeConfiguration", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNodeConfiguration sets the NodeConfiguration field's value.
[ "SetNodeConfiguration", "sets", "the", "NodeConfiguration", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L2604-L2607
254
aws/aws-sdk-go
service/managedblockchain/api.go
SetMember
func (s *GetMemberOutput) SetMember(v *Member) *GetMemberOutput { s.Member = v return s }
go
func (s *GetMemberOutput) SetMember(v *Member) *GetMemberOutput { s.Member = v return s }
[ "func", "(", "s", "*", "GetMemberOutput", ")", "SetMember", "(", "v", "*", "Member", ")", "*", "GetMemberOutput", "{", "s", ".", "Member", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetMember sets the Member field's value.
[ "SetMember", "sets", "the", "Member", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L2999-L3002
255
aws/aws-sdk-go
service/managedblockchain/api.go
SetNode
func (s *GetNodeOutput) SetNode(v *Node) *GetNodeOutput { s.Node = v return s }
go
func (s *GetNodeOutput) SetNode(v *Node) *GetNodeOutput { s.Node = v return s }
[ "func", "(", "s", "*", "GetNodeOutput", ")", "SetNode", "(", "v", "*", "Node", ")", "*", "GetNodeOutput", "{", "s", ".", "Node", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNode sets the Node field's value.
[ "SetNode", "sets", "the", "Node", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L3161-L3164
256
aws/aws-sdk-go
service/managedblockchain/api.go
SetProposal
func (s *GetProposalOutput) SetProposal(v *Proposal) *GetProposalOutput { s.Proposal = v return s }
go
func (s *GetProposalOutput) SetProposal(v *Proposal) *GetProposalOutput { s.Proposal = v return s }
[ "func", "(", "s", "*", "GetProposalOutput", ")", "SetProposal", "(", "v", "*", "Proposal", ")", "*", "GetProposalOutput", "{", "s", ".", "Proposal", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetProposal sets the Proposal field's value.
[ "SetProposal", "sets", "the", "Proposal", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L3242-L3245
257
aws/aws-sdk-go
service/managedblockchain/api.go
SetNetworkSummary
func (s *Invitation) SetNetworkSummary(v *NetworkSummary) *Invitation { s.NetworkSummary = v return s }
go
func (s *Invitation) SetNetworkSummary(v *NetworkSummary) *Invitation { s.NetworkSummary = v return s }
[ "func", "(", "s", "*", "Invitation", ")", "SetNetworkSummary", "(", "v", "*", "NetworkSummary", ")", "*", "Invitation", "{", "s", ".", "NetworkSummary", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNetworkSummary sets the NetworkSummary field's value.
[ "SetNetworkSummary", "sets", "the", "NetworkSummary", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L3313-L3316
258
aws/aws-sdk-go
service/managedblockchain/api.go
SetNetworks
func (s *ListNetworksOutput) SetNetworks(v []*NetworkSummary) *ListNetworksOutput { s.Networks = v return s }
go
func (s *ListNetworksOutput) SetNetworks(v []*NetworkSummary) *ListNetworksOutput { s.Networks = v return s }
[ "func", "(", "s", "*", "ListNetworksOutput", ")", "SetNetworks", "(", "v", "[", "]", "*", "NetworkSummary", ")", "*", "ListNetworksOutput", "{", "s", ".", "Networks", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetNetworks sets the Networks field's value.
[ "SetNetworks", "sets", "the", "Networks", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L3662-L3665
259
aws/aws-sdk-go
service/managedblockchain/api.go
SetProposalVotes
func (s *ListProposalVotesOutput) SetProposalVotes(v []*VoteSummary) *ListProposalVotesOutput { s.ProposalVotes = v return s }
go
func (s *ListProposalVotesOutput) SetProposalVotes(v []*VoteSummary) *ListProposalVotesOutput { s.ProposalVotes = v return s }
[ "func", "(", "s", "*", "ListProposalVotesOutput", ")", "SetProposalVotes", "(", "v", "[", "]", "*", "VoteSummary", ")", "*", "ListProposalVotesOutput", "{", "s", ".", "ProposalVotes", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetProposalVotes sets the ProposalVotes field's value.
[ "SetProposalVotes", "sets", "the", "ProposalVotes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L3901-L3904
260
aws/aws-sdk-go
service/managedblockchain/api.go
SetProposals
func (s *ListProposalsOutput) SetProposals(v []*ProposalSummary) *ListProposalsOutput { s.Proposals = v return s }
go
func (s *ListProposalsOutput) SetProposals(v []*ProposalSummary) *ListProposalsOutput { s.Proposals = v return s }
[ "func", "(", "s", "*", "ListProposalsOutput", ")", "SetProposals", "(", "v", "[", "]", "*", "ProposalSummary", ")", "*", "ListProposalsOutput", "{", "s", ".", "Proposals", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetProposals sets the Proposals field's value.
[ "SetProposals", "sets", "the", "Proposals", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L3995-L3998
261
aws/aws-sdk-go
service/managedblockchain/api.go
SetCaEndpoint
func (s *MemberFabricAttributes) SetCaEndpoint(v string) *MemberFabricAttributes { s.CaEndpoint = &v return s }
go
func (s *MemberFabricAttributes) SetCaEndpoint(v string) *MemberFabricAttributes { s.CaEndpoint = &v return s }
[ "func", "(", "s", "*", "MemberFabricAttributes", ")", "SetCaEndpoint", "(", "v", "string", ")", "*", "MemberFabricAttributes", "{", "s", ".", "CaEndpoint", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCaEndpoint sets the CaEndpoint field's value.
[ "SetCaEndpoint", "sets", "the", "CaEndpoint", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L4195-L4198
262
aws/aws-sdk-go
service/managedblockchain/api.go
SetAdminPassword
func (s *MemberFabricConfiguration) SetAdminPassword(v string) *MemberFabricConfiguration { s.AdminPassword = &v return s }
go
func (s *MemberFabricConfiguration) SetAdminPassword(v string) *MemberFabricConfiguration { s.AdminPassword = &v return s }
[ "func", "(", "s", "*", "MemberFabricConfiguration", ")", "SetAdminPassword", "(", "v", "string", ")", "*", "MemberFabricConfiguration", "{", "s", ".", "AdminPassword", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAdminPassword sets the AdminPassword field's value.
[ "SetAdminPassword", "sets", "the", "AdminPassword", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L4253-L4256
263
aws/aws-sdk-go
service/managedblockchain/api.go
SetVpcEndpointServiceName
func (s *Network) SetVpcEndpointServiceName(v string) *Network { s.VpcEndpointServiceName = &v return s }
go
func (s *Network) SetVpcEndpointServiceName(v string) *Network { s.VpcEndpointServiceName = &v return s }
[ "func", "(", "s", "*", "Network", ")", "SetVpcEndpointServiceName", "(", "v", "string", ")", "*", "Network", "{", "s", ".", "VpcEndpointServiceName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetVpcEndpointServiceName sets the VpcEndpointServiceName field's value.
[ "SetVpcEndpointServiceName", "sets", "the", "VpcEndpointServiceName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L4520-L4523
264
aws/aws-sdk-go
service/managedblockchain/api.go
SetOrderingServiceEndpoint
func (s *NetworkFabricAttributes) SetOrderingServiceEndpoint(v string) *NetworkFabricAttributes { s.OrderingServiceEndpoint = &v return s }
go
func (s *NetworkFabricAttributes) SetOrderingServiceEndpoint(v string) *NetworkFabricAttributes { s.OrderingServiceEndpoint = &v return s }
[ "func", "(", "s", "*", "NetworkFabricAttributes", ")", "SetOrderingServiceEndpoint", "(", "v", "string", ")", "*", "NetworkFabricAttributes", "{", "s", ".", "OrderingServiceEndpoint", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOrderingServiceEndpoint sets the OrderingServiceEndpoint field's value.
[ "SetOrderingServiceEndpoint", "sets", "the", "OrderingServiceEndpoint", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L4554-L4557
265
aws/aws-sdk-go
service/managedblockchain/api.go
SetPeerEndpoint
func (s *NodeFabricAttributes) SetPeerEndpoint(v string) *NodeFabricAttributes { s.PeerEndpoint = &v return s }
go
func (s *NodeFabricAttributes) SetPeerEndpoint(v string) *NodeFabricAttributes { s.PeerEndpoint = &v return s }
[ "func", "(", "s", "*", "NodeFabricAttributes", ")", "SetPeerEndpoint", "(", "v", "string", ")", "*", "NodeFabricAttributes", "{", "s", ".", "PeerEndpoint", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPeerEndpoint sets the PeerEndpoint field's value.
[ "SetPeerEndpoint", "sets", "the", "PeerEndpoint", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L4908-L4911
266
aws/aws-sdk-go
service/managedblockchain/api.go
SetPeerEventEndpoint
func (s *NodeFabricAttributes) SetPeerEventEndpoint(v string) *NodeFabricAttributes { s.PeerEventEndpoint = &v return s }
go
func (s *NodeFabricAttributes) SetPeerEventEndpoint(v string) *NodeFabricAttributes { s.PeerEventEndpoint = &v return s }
[ "func", "(", "s", "*", "NodeFabricAttributes", ")", "SetPeerEventEndpoint", "(", "v", "string", ")", "*", "NodeFabricAttributes", "{", "s", ".", "PeerEventEndpoint", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPeerEventEndpoint sets the PeerEventEndpoint field's value.
[ "SetPeerEventEndpoint", "sets", "the", "PeerEventEndpoint", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L4914-L4917
267
aws/aws-sdk-go
service/managedblockchain/api.go
SetNoVoteCount
func (s *Proposal) SetNoVoteCount(v int64) *Proposal { s.NoVoteCount = &v return s }
go
func (s *Proposal) SetNoVoteCount(v int64) *Proposal { s.NoVoteCount = &v return s }
[ "func", "(", "s", "*", "Proposal", ")", "SetNoVoteCount", "(", "v", "int64", ")", "*", "Proposal", "{", "s", ".", "NoVoteCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNoVoteCount sets the NoVoteCount field's value.
[ "SetNoVoteCount", "sets", "the", "NoVoteCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L5109-L5112
268
aws/aws-sdk-go
service/managedblockchain/api.go
SetOutstandingVoteCount
func (s *Proposal) SetOutstandingVoteCount(v int64) *Proposal { s.OutstandingVoteCount = &v return s }
go
func (s *Proposal) SetOutstandingVoteCount(v int64) *Proposal { s.OutstandingVoteCount = &v return s }
[ "func", "(", "s", "*", "Proposal", ")", "SetOutstandingVoteCount", "(", "v", "int64", ")", "*", "Proposal", "{", "s", ".", "OutstandingVoteCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOutstandingVoteCount sets the OutstandingVoteCount field's value.
[ "SetOutstandingVoteCount", "sets", "the", "OutstandingVoteCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L5115-L5118
269
aws/aws-sdk-go
service/managedblockchain/api.go
SetYesVoteCount
func (s *Proposal) SetYesVoteCount(v int64) *Proposal { s.YesVoteCount = &v return s }
go
func (s *Proposal) SetYesVoteCount(v int64) *Proposal { s.YesVoteCount = &v return s }
[ "func", "(", "s", "*", "Proposal", ")", "SetYesVoteCount", "(", "v", "int64", ")", "*", "Proposal", "{", "s", ".", "YesVoteCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetYesVoteCount sets the YesVoteCount field's value.
[ "SetYesVoteCount", "sets", "the", "YesVoteCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L5145-L5148
270
aws/aws-sdk-go
service/managedblockchain/api.go
SetRemovals
func (s *ProposalActions) SetRemovals(v []*RemoveAction) *ProposalActions { s.Removals = v return s }
go
func (s *ProposalActions) SetRemovals(v []*RemoveAction) *ProposalActions { s.Removals = v return s }
[ "func", "(", "s", "*", "ProposalActions", ")", "SetRemovals", "(", "v", "[", "]", "*", "RemoveAction", ")", "*", "ProposalActions", "{", "s", ".", "Removals", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRemovals sets the Removals field's value.
[ "SetRemovals", "sets", "the", "Removals", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L5211-L5214
271
aws/aws-sdk-go
service/managedblockchain/api.go
SetVoterMemberId
func (s *VoteOnProposalInput) SetVoterMemberId(v string) *VoteOnProposalInput { s.VoterMemberId = &v return s }
go
func (s *VoteOnProposalInput) SetVoterMemberId(v string) *VoteOnProposalInput { s.VoterMemberId = &v return s }
[ "func", "(", "s", "*", "VoteOnProposalInput", ")", "SetVoterMemberId", "(", "v", "string", ")", "*", "VoteOnProposalInput", "{", "s", ".", "VoterMemberId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetVoterMemberId sets the VoterMemberId field's value.
[ "SetVoterMemberId", "sets", "the", "VoterMemberId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L5498-L5501
272
aws/aws-sdk-go
service/managedblockchain/api.go
SetApprovalThresholdPolicy
func (s *VotingPolicy) SetApprovalThresholdPolicy(v *ApprovalThresholdPolicy) *VotingPolicy { s.ApprovalThresholdPolicy = v return s }
go
func (s *VotingPolicy) SetApprovalThresholdPolicy(v *ApprovalThresholdPolicy) *VotingPolicy { s.ApprovalThresholdPolicy = v return s }
[ "func", "(", "s", "*", "VotingPolicy", ")", "SetApprovalThresholdPolicy", "(", "v", "*", "ApprovalThresholdPolicy", ")", "*", "VotingPolicy", "{", "s", ".", "ApprovalThresholdPolicy", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetApprovalThresholdPolicy sets the ApprovalThresholdPolicy field's value.
[ "SetApprovalThresholdPolicy", "sets", "the", "ApprovalThresholdPolicy", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/managedblockchain/api.go#L5596-L5599
273
aws/aws-sdk-go
service/s3/s3manager/upload.go
Error
func (m multiUploadError) Error() string { extra := fmt.Sprintf("upload id: %s", m.uploadID) return awserr.SprintError(m.Code(), m.Message(), extra, m.OrigErr()) }
go
func (m multiUploadError) Error() string { extra := fmt.Sprintf("upload id: %s", m.uploadID) return awserr.SprintError(m.Code(), m.Message(), extra, m.OrigErr()) }
[ "func", "(", "m", "multiUploadError", ")", "Error", "(", ")", "string", "{", "extra", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "m", ".", "uploadID", ")", "\n", "return", "awserr", ".", "SprintError", "(", "m", ".", "Code", "(", ")", ",", "m", ".", "Message", "(", ")", ",", "extra", ",", "m", ".", "OrigErr", "(", ")", ")", "\n", "}" ]
// Error returns the string representation of the error. // // See apierr.BaseError ErrorWithExtra for output format // // Satisfies the error interface.
[ "Error", "returns", "the", "string", "representation", "of", "the", "error", ".", "See", "apierr", ".", "BaseError", "ErrorWithExtra", "for", "output", "format", "Satisfies", "the", "error", "interface", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L83-L86
274
aws/aws-sdk-go
service/s3/s3manager/upload.go
WithUploaderRequestOptions
func WithUploaderRequestOptions(opts ...request.Option) func(*Uploader) { return func(u *Uploader) { u.RequestOptions = append(u.RequestOptions, opts...) } }
go
func WithUploaderRequestOptions(opts ...request.Option) func(*Uploader) { return func(u *Uploader) { u.RequestOptions = append(u.RequestOptions, opts...) } }
[ "func", "WithUploaderRequestOptions", "(", "opts", "...", "request", ".", "Option", ")", "func", "(", "*", "Uploader", ")", "{", "return", "func", "(", "u", "*", "Uploader", ")", "{", "u", ".", "RequestOptions", "=", "append", "(", "u", ".", "RequestOptions", ",", "opts", "...", ")", "\n", "}", "\n", "}" ]
// WithUploaderRequestOptions appends to the Uploader's API request options.
[ "WithUploaderRequestOptions", "appends", "to", "the", "Uploader", "s", "API", "request", "options", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L115-L119
275
aws/aws-sdk-go
service/s3/s3manager/upload.go
UploadWithContext
func (u Uploader) UploadWithContext(ctx aws.Context, input *UploadInput, opts ...func(*Uploader)) (*UploadOutput, error) { i := uploader{in: input, cfg: u, ctx: ctx} for _, opt := range opts { opt(&i.cfg) } i.cfg.RequestOptions = append(i.cfg.RequestOptions, request.WithAppendUserAgent("S3Manager")) return i.upload() }
go
func (u Uploader) UploadWithContext(ctx aws.Context, input *UploadInput, opts ...func(*Uploader)) (*UploadOutput, error) { i := uploader{in: input, cfg: u, ctx: ctx} for _, opt := range opts { opt(&i.cfg) } i.cfg.RequestOptions = append(i.cfg.RequestOptions, request.WithAppendUserAgent("S3Manager")) return i.upload() }
[ "func", "(", "u", "Uploader", ")", "UploadWithContext", "(", "ctx", "aws", ".", "Context", ",", "input", "*", "UploadInput", ",", "opts", "...", "func", "(", "*", "Uploader", ")", ")", "(", "*", "UploadOutput", ",", "error", ")", "{", "i", ":=", "uploader", "{", "in", ":", "input", ",", "cfg", ":", "u", ",", "ctx", ":", "ctx", "}", "\n\n", "for", "_", ",", "opt", ":=", "range", "opts", "{", "opt", "(", "&", "i", ".", "cfg", ")", "\n", "}", "\n", "i", ".", "cfg", ".", "RequestOptions", "=", "append", "(", "i", ".", "cfg", ".", "RequestOptions", ",", "request", ".", "WithAppendUserAgent", "(", "\"", "\"", ")", ")", "\n\n", "return", "i", ".", "upload", "(", ")", "\n", "}" ]
// UploadWithContext uploads an object to S3, intelligently buffering large // files into smaller chunks and sending them in parallel across multiple // goroutines. You can configure the buffer size and concurrency through the // Uploader's parameters. // // UploadWithContext is the same as Upload with the additional support for // Context input parameters. The Context must not be nil. A nil Context will // cause a panic. Use the context to add deadlining, timeouts, etc. The // UploadWithContext may create sub-contexts for individual underlying requests. // // Additional functional options can be provided to configure the individual // upload. These options are copies of the Uploader instance Upload is called from. // Modifying the options will not impact the original Uploader instance. // // Use the WithUploaderRequestOptions helper function to pass in request // options that will be applied to all API operations made with this uploader. // // It is safe to call this method concurrently across goroutines.
[ "UploadWithContext", "uploads", "an", "object", "to", "S3", "intelligently", "buffering", "large", "files", "into", "smaller", "chunks", "and", "sending", "them", "in", "parallel", "across", "multiple", "goroutines", ".", "You", "can", "configure", "the", "buffer", "size", "and", "concurrency", "through", "the", "Uploader", "s", "parameters", ".", "UploadWithContext", "is", "the", "same", "as", "Upload", "with", "the", "additional", "support", "for", "Context", "input", "parameters", ".", "The", "Context", "must", "not", "be", "nil", ".", "A", "nil", "Context", "will", "cause", "a", "panic", ".", "Use", "the", "context", "to", "add", "deadlining", "timeouts", "etc", ".", "The", "UploadWithContext", "may", "create", "sub", "-", "contexts", "for", "individual", "underlying", "requests", ".", "Additional", "functional", "options", "can", "be", "provided", "to", "configure", "the", "individual", "upload", ".", "These", "options", "are", "copies", "of", "the", "Uploader", "instance", "Upload", "is", "called", "from", ".", "Modifying", "the", "options", "will", "not", "impact", "the", "original", "Uploader", "instance", ".", "Use", "the", "WithUploaderRequestOptions", "helper", "function", "to", "pass", "in", "request", "options", "that", "will", "be", "applied", "to", "all", "API", "operations", "made", "with", "this", "uploader", ".", "It", "is", "safe", "to", "call", "this", "method", "concurrently", "across", "goroutines", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L279-L288
276
aws/aws-sdk-go
service/s3/s3manager/upload.go
upload
func (u *uploader) upload() (*UploadOutput, error) { u.init() if u.cfg.PartSize < MinUploadPartSize { msg := fmt.Sprintf("part size must be at least %d bytes", MinUploadPartSize) return nil, awserr.New("ConfigError", msg, nil) } // Do one read to determine if we have more than one part reader, _, part, err := u.nextReader() if err == io.EOF { // single part return u.singlePart(reader) } else if err != nil { return nil, awserr.New("ReadRequestBody", "read upload data failed", err) } mu := multiuploader{uploader: u} return mu.upload(reader, part) }
go
func (u *uploader) upload() (*UploadOutput, error) { u.init() if u.cfg.PartSize < MinUploadPartSize { msg := fmt.Sprintf("part size must be at least %d bytes", MinUploadPartSize) return nil, awserr.New("ConfigError", msg, nil) } // Do one read to determine if we have more than one part reader, _, part, err := u.nextReader() if err == io.EOF { // single part return u.singlePart(reader) } else if err != nil { return nil, awserr.New("ReadRequestBody", "read upload data failed", err) } mu := multiuploader{uploader: u} return mu.upload(reader, part) }
[ "func", "(", "u", "*", "uploader", ")", "upload", "(", ")", "(", "*", "UploadOutput", ",", "error", ")", "{", "u", ".", "init", "(", ")", "\n\n", "if", "u", ".", "cfg", ".", "PartSize", "<", "MinUploadPartSize", "{", "msg", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "MinUploadPartSize", ")", "\n", "return", "nil", ",", "awserr", ".", "New", "(", "\"", "\"", ",", "msg", ",", "nil", ")", "\n", "}", "\n\n", "// Do one read to determine if we have more than one part", "reader", ",", "_", ",", "part", ",", "err", ":=", "u", ".", "nextReader", "(", ")", "\n", "if", "err", "==", "io", ".", "EOF", "{", "// single part", "return", "u", ".", "singlePart", "(", "reader", ")", "\n", "}", "else", "if", "err", "!=", "nil", "{", "return", "nil", ",", "awserr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ",", "err", ")", "\n", "}", "\n\n", "mu", ":=", "multiuploader", "{", "uploader", ":", "u", "}", "\n", "return", "mu", ".", "upload", "(", "reader", ",", "part", ")", "\n", "}" ]
// internal logic for deciding whether to upload a single part or use a // multipart upload.
[ "internal", "logic", "for", "deciding", "whether", "to", "upload", "a", "single", "part", "or", "use", "a", "multipart", "upload", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L360-L378
277
aws/aws-sdk-go
service/s3/s3manager/upload.go
init
func (u *uploader) init() { if u.cfg.Concurrency == 0 { u.cfg.Concurrency = DefaultUploadConcurrency } if u.cfg.PartSize == 0 { u.cfg.PartSize = DefaultUploadPartSize } if u.cfg.MaxUploadParts == 0 { u.cfg.MaxUploadParts = MaxUploadParts } u.bufferPool = sync.Pool{ New: func() interface{} { return make([]byte, u.cfg.PartSize) }, } // Try to get the total size for some optimizations u.initSize() }
go
func (u *uploader) init() { if u.cfg.Concurrency == 0 { u.cfg.Concurrency = DefaultUploadConcurrency } if u.cfg.PartSize == 0 { u.cfg.PartSize = DefaultUploadPartSize } if u.cfg.MaxUploadParts == 0 { u.cfg.MaxUploadParts = MaxUploadParts } u.bufferPool = sync.Pool{ New: func() interface{} { return make([]byte, u.cfg.PartSize) }, } // Try to get the total size for some optimizations u.initSize() }
[ "func", "(", "u", "*", "uploader", ")", "init", "(", ")", "{", "if", "u", ".", "cfg", ".", "Concurrency", "==", "0", "{", "u", ".", "cfg", ".", "Concurrency", "=", "DefaultUploadConcurrency", "\n", "}", "\n", "if", "u", ".", "cfg", ".", "PartSize", "==", "0", "{", "u", ".", "cfg", ".", "PartSize", "=", "DefaultUploadPartSize", "\n", "}", "\n", "if", "u", ".", "cfg", ".", "MaxUploadParts", "==", "0", "{", "u", ".", "cfg", ".", "MaxUploadParts", "=", "MaxUploadParts", "\n", "}", "\n\n", "u", ".", "bufferPool", "=", "sync", ".", "Pool", "{", "New", ":", "func", "(", ")", "interface", "{", "}", "{", "return", "make", "(", "[", "]", "byte", ",", "u", ".", "cfg", ".", "PartSize", ")", "}", ",", "}", "\n\n", "// Try to get the total size for some optimizations", "u", ".", "initSize", "(", ")", "\n", "}" ]
// init will initialize all default options.
[ "init", "will", "initialize", "all", "default", "options", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L381-L398
278
aws/aws-sdk-go
service/s3/s3manager/upload.go
initSize
func (u *uploader) initSize() { u.totalSize = -1 switch r := u.in.Body.(type) { case io.Seeker: n, err := aws.SeekerLen(r) if err != nil { return } u.totalSize = n // Try to adjust partSize if it is too small and account for // integer division truncation. if u.totalSize/u.cfg.PartSize >= int64(u.cfg.MaxUploadParts) { // Add one to the part size to account for remainders // during the size calculation. e.g odd number of bytes. u.cfg.PartSize = (u.totalSize / int64(u.cfg.MaxUploadParts)) + 1 } } }
go
func (u *uploader) initSize() { u.totalSize = -1 switch r := u.in.Body.(type) { case io.Seeker: n, err := aws.SeekerLen(r) if err != nil { return } u.totalSize = n // Try to adjust partSize if it is too small and account for // integer division truncation. if u.totalSize/u.cfg.PartSize >= int64(u.cfg.MaxUploadParts) { // Add one to the part size to account for remainders // during the size calculation. e.g odd number of bytes. u.cfg.PartSize = (u.totalSize / int64(u.cfg.MaxUploadParts)) + 1 } } }
[ "func", "(", "u", "*", "uploader", ")", "initSize", "(", ")", "{", "u", ".", "totalSize", "=", "-", "1", "\n\n", "switch", "r", ":=", "u", ".", "in", ".", "Body", ".", "(", "type", ")", "{", "case", "io", ".", "Seeker", ":", "n", ",", "err", ":=", "aws", ".", "SeekerLen", "(", "r", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\n", "}", "\n", "u", ".", "totalSize", "=", "n", "\n\n", "// Try to adjust partSize if it is too small and account for", "// integer division truncation.", "if", "u", ".", "totalSize", "/", "u", ".", "cfg", ".", "PartSize", ">=", "int64", "(", "u", ".", "cfg", ".", "MaxUploadParts", ")", "{", "// Add one to the part size to account for remainders", "// during the size calculation. e.g odd number of bytes.", "u", ".", "cfg", ".", "PartSize", "=", "(", "u", ".", "totalSize", "/", "int64", "(", "u", ".", "cfg", ".", "MaxUploadParts", ")", ")", "+", "1", "\n", "}", "\n", "}", "\n", "}" ]
// initSize tries to detect the total stream size, setting u.totalSize. If // the size is not known, totalSize is set to -1.
[ "initSize", "tries", "to", "detect", "the", "total", "stream", "size", "setting", "u", ".", "totalSize", ".", "If", "the", "size", "is", "not", "known", "totalSize", "is", "set", "to", "-", "1", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L402-L421
279
aws/aws-sdk-go
service/s3/s3manager/upload.go
nextReader
func (u *uploader) nextReader() (io.ReadSeeker, int, []byte, error) { type readerAtSeeker interface { io.ReaderAt io.ReadSeeker } switch r := u.in.Body.(type) { case readerAtSeeker: var err error n := u.cfg.PartSize if u.totalSize >= 0 { bytesLeft := u.totalSize - u.readerPos if bytesLeft <= u.cfg.PartSize { err = io.EOF n = bytesLeft } } reader := io.NewSectionReader(r, u.readerPos, n) u.readerPos += n return reader, int(n), nil, err default: part := u.bufferPool.Get().([]byte) n, err := readFillBuf(r, part) u.readerPos += int64(n) return bytes.NewReader(part[0:n]), n, part, err } }
go
func (u *uploader) nextReader() (io.ReadSeeker, int, []byte, error) { type readerAtSeeker interface { io.ReaderAt io.ReadSeeker } switch r := u.in.Body.(type) { case readerAtSeeker: var err error n := u.cfg.PartSize if u.totalSize >= 0 { bytesLeft := u.totalSize - u.readerPos if bytesLeft <= u.cfg.PartSize { err = io.EOF n = bytesLeft } } reader := io.NewSectionReader(r, u.readerPos, n) u.readerPos += n return reader, int(n), nil, err default: part := u.bufferPool.Get().([]byte) n, err := readFillBuf(r, part) u.readerPos += int64(n) return bytes.NewReader(part[0:n]), n, part, err } }
[ "func", "(", "u", "*", "uploader", ")", "nextReader", "(", ")", "(", "io", ".", "ReadSeeker", ",", "int", ",", "[", "]", "byte", ",", "error", ")", "{", "type", "readerAtSeeker", "interface", "{", "io", ".", "ReaderAt", "\n", "io", ".", "ReadSeeker", "\n", "}", "\n", "switch", "r", ":=", "u", ".", "in", ".", "Body", ".", "(", "type", ")", "{", "case", "readerAtSeeker", ":", "var", "err", "error", "\n\n", "n", ":=", "u", ".", "cfg", ".", "PartSize", "\n", "if", "u", ".", "totalSize", ">=", "0", "{", "bytesLeft", ":=", "u", ".", "totalSize", "-", "u", ".", "readerPos", "\n\n", "if", "bytesLeft", "<=", "u", ".", "cfg", ".", "PartSize", "{", "err", "=", "io", ".", "EOF", "\n", "n", "=", "bytesLeft", "\n", "}", "\n", "}", "\n\n", "reader", ":=", "io", ".", "NewSectionReader", "(", "r", ",", "u", ".", "readerPos", ",", "n", ")", "\n", "u", ".", "readerPos", "+=", "n", "\n\n", "return", "reader", ",", "int", "(", "n", ")", ",", "nil", ",", "err", "\n\n", "default", ":", "part", ":=", "u", ".", "bufferPool", ".", "Get", "(", ")", ".", "(", "[", "]", "byte", ")", "\n", "n", ",", "err", ":=", "readFillBuf", "(", "r", ",", "part", ")", "\n", "u", ".", "readerPos", "+=", "int64", "(", "n", ")", "\n\n", "return", "bytes", ".", "NewReader", "(", "part", "[", "0", ":", "n", "]", ")", ",", "n", ",", "part", ",", "err", "\n", "}", "\n", "}" ]
// nextReader returns a seekable reader representing the next packet of data. // This operation increases the shared u.readerPos counter, but note that it // does not need to be wrapped in a mutex because nextReader is only called // from the main thread.
[ "nextReader", "returns", "a", "seekable", "reader", "representing", "the", "next", "packet", "of", "data", ".", "This", "operation", "increases", "the", "shared", "u", ".", "readerPos", "counter", "but", "note", "that", "it", "does", "not", "need", "to", "be", "wrapped", "in", "a", "mutex", "because", "nextReader", "is", "only", "called", "from", "the", "main", "thread", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L427-L458
280
aws/aws-sdk-go
service/s3/s3manager/upload.go
singlePart
func (u *uploader) singlePart(buf io.ReadSeeker) (*UploadOutput, error) { params := &s3.PutObjectInput{} awsutil.Copy(params, u.in) params.Body = buf // Need to use request form because URL generated in request is // used in return. req, out := u.cfg.S3.PutObjectRequest(params) req.SetContext(u.ctx) req.ApplyOptions(u.cfg.RequestOptions...) if err := req.Send(); err != nil { return nil, err } url := req.HTTPRequest.URL.String() return &UploadOutput{ Location: url, VersionID: out.VersionId, }, nil }
go
func (u *uploader) singlePart(buf io.ReadSeeker) (*UploadOutput, error) { params := &s3.PutObjectInput{} awsutil.Copy(params, u.in) params.Body = buf // Need to use request form because URL generated in request is // used in return. req, out := u.cfg.S3.PutObjectRequest(params) req.SetContext(u.ctx) req.ApplyOptions(u.cfg.RequestOptions...) if err := req.Send(); err != nil { return nil, err } url := req.HTTPRequest.URL.String() return &UploadOutput{ Location: url, VersionID: out.VersionId, }, nil }
[ "func", "(", "u", "*", "uploader", ")", "singlePart", "(", "buf", "io", ".", "ReadSeeker", ")", "(", "*", "UploadOutput", ",", "error", ")", "{", "params", ":=", "&", "s3", ".", "PutObjectInput", "{", "}", "\n", "awsutil", ".", "Copy", "(", "params", ",", "u", ".", "in", ")", "\n", "params", ".", "Body", "=", "buf", "\n\n", "// Need to use request form because URL generated in request is", "// used in return.", "req", ",", "out", ":=", "u", ".", "cfg", ".", "S3", ".", "PutObjectRequest", "(", "params", ")", "\n", "req", ".", "SetContext", "(", "u", ".", "ctx", ")", "\n", "req", ".", "ApplyOptions", "(", "u", ".", "cfg", ".", "RequestOptions", "...", ")", "\n", "if", "err", ":=", "req", ".", "Send", "(", ")", ";", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n\n", "url", ":=", "req", ".", "HTTPRequest", ".", "URL", ".", "String", "(", ")", "\n", "return", "&", "UploadOutput", "{", "Location", ":", "url", ",", "VersionID", ":", "out", ".", "VersionId", ",", "}", ",", "nil", "\n", "}" ]
// singlePart contains upload logic for uploading a single chunk via // a regular PutObject request. Multipart requests require at least two // parts, or at least 5MB of data.
[ "singlePart", "contains", "upload", "logic", "for", "uploading", "a", "single", "chunk", "via", "a", "regular", "PutObject", "request", ".", "Multipart", "requests", "require", "at", "least", "two", "parts", "or", "at", "least", "5MB", "of", "data", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L473-L492
281
aws/aws-sdk-go
service/s3/s3manager/upload.go
upload
func (u *multiuploader) upload(firstBuf io.ReadSeeker, firstPart []byte) (*UploadOutput, error) { params := &s3.CreateMultipartUploadInput{} awsutil.Copy(params, u.in) // Create the multipart resp, err := u.cfg.S3.CreateMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...) if err != nil { return nil, err } u.uploadID = *resp.UploadId // Create the workers ch := make(chan chunk, u.cfg.Concurrency) for i := 0; i < u.cfg.Concurrency; i++ { u.wg.Add(1) go u.readChunk(ch) } // Send part 1 to the workers var num int64 = 1 ch <- chunk{buf: firstBuf, part: firstPart, num: num} // Read and queue the rest of the parts for u.geterr() == nil && err == nil { num++ // This upload exceeded maximum number of supported parts, error now. if num > int64(u.cfg.MaxUploadParts) || num > int64(MaxUploadParts) { var msg string if num > int64(u.cfg.MaxUploadParts) { msg = fmt.Sprintf("exceeded total allowed configured MaxUploadParts (%d). Adjust PartSize to fit in this limit", u.cfg.MaxUploadParts) } else { msg = fmt.Sprintf("exceeded total allowed S3 limit MaxUploadParts (%d). Adjust PartSize to fit in this limit", MaxUploadParts) } u.seterr(awserr.New("TotalPartsExceeded", msg, nil)) break } var reader io.ReadSeeker var nextChunkLen int var part []byte reader, nextChunkLen, part, err = u.nextReader() if err != nil && err != io.EOF { u.seterr(awserr.New( "ReadRequestBody", "read multipart upload data failed", err)) break } if nextChunkLen == 0 { // No need to upload empty part, if file was empty to start // with empty single part would of been created and never // started multipart upload. break } ch <- chunk{buf: reader, part: part, num: num} } // Close the channel, wait for workers, and complete upload close(ch) u.wg.Wait() complete := u.complete() if err := u.geterr(); err != nil { return nil, &multiUploadError{ awsError: awserr.New( "MultipartUpload", "upload multipart failed", err), uploadID: u.uploadID, } } // Create a presigned URL of the S3 Get Object in order to have parity with // single part upload. getReq, _ := u.cfg.S3.GetObjectRequest(&s3.GetObjectInput{ Bucket: u.in.Bucket, Key: u.in.Key, }) getReq.Config.Credentials = credentials.AnonymousCredentials uploadLocation, _, _ := getReq.PresignRequest(1) return &UploadOutput{ Location: uploadLocation, VersionID: complete.VersionId, UploadID: u.uploadID, }, nil }
go
func (u *multiuploader) upload(firstBuf io.ReadSeeker, firstPart []byte) (*UploadOutput, error) { params := &s3.CreateMultipartUploadInput{} awsutil.Copy(params, u.in) // Create the multipart resp, err := u.cfg.S3.CreateMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...) if err != nil { return nil, err } u.uploadID = *resp.UploadId // Create the workers ch := make(chan chunk, u.cfg.Concurrency) for i := 0; i < u.cfg.Concurrency; i++ { u.wg.Add(1) go u.readChunk(ch) } // Send part 1 to the workers var num int64 = 1 ch <- chunk{buf: firstBuf, part: firstPart, num: num} // Read and queue the rest of the parts for u.geterr() == nil && err == nil { num++ // This upload exceeded maximum number of supported parts, error now. if num > int64(u.cfg.MaxUploadParts) || num > int64(MaxUploadParts) { var msg string if num > int64(u.cfg.MaxUploadParts) { msg = fmt.Sprintf("exceeded total allowed configured MaxUploadParts (%d). Adjust PartSize to fit in this limit", u.cfg.MaxUploadParts) } else { msg = fmt.Sprintf("exceeded total allowed S3 limit MaxUploadParts (%d). Adjust PartSize to fit in this limit", MaxUploadParts) } u.seterr(awserr.New("TotalPartsExceeded", msg, nil)) break } var reader io.ReadSeeker var nextChunkLen int var part []byte reader, nextChunkLen, part, err = u.nextReader() if err != nil && err != io.EOF { u.seterr(awserr.New( "ReadRequestBody", "read multipart upload data failed", err)) break } if nextChunkLen == 0 { // No need to upload empty part, if file was empty to start // with empty single part would of been created and never // started multipart upload. break } ch <- chunk{buf: reader, part: part, num: num} } // Close the channel, wait for workers, and complete upload close(ch) u.wg.Wait() complete := u.complete() if err := u.geterr(); err != nil { return nil, &multiUploadError{ awsError: awserr.New( "MultipartUpload", "upload multipart failed", err), uploadID: u.uploadID, } } // Create a presigned URL of the S3 Get Object in order to have parity with // single part upload. getReq, _ := u.cfg.S3.GetObjectRequest(&s3.GetObjectInput{ Bucket: u.in.Bucket, Key: u.in.Key, }) getReq.Config.Credentials = credentials.AnonymousCredentials uploadLocation, _, _ := getReq.PresignRequest(1) return &UploadOutput{ Location: uploadLocation, VersionID: complete.VersionId, UploadID: u.uploadID, }, nil }
[ "func", "(", "u", "*", "multiuploader", ")", "upload", "(", "firstBuf", "io", ".", "ReadSeeker", ",", "firstPart", "[", "]", "byte", ")", "(", "*", "UploadOutput", ",", "error", ")", "{", "params", ":=", "&", "s3", ".", "CreateMultipartUploadInput", "{", "}", "\n", "awsutil", ".", "Copy", "(", "params", ",", "u", ".", "in", ")", "\n\n", "// Create the multipart", "resp", ",", "err", ":=", "u", ".", "cfg", ".", "S3", ".", "CreateMultipartUploadWithContext", "(", "u", ".", "ctx", ",", "params", ",", "u", ".", "cfg", ".", "RequestOptions", "...", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n", "u", ".", "uploadID", "=", "*", "resp", ".", "UploadId", "\n\n", "// Create the workers", "ch", ":=", "make", "(", "chan", "chunk", ",", "u", ".", "cfg", ".", "Concurrency", ")", "\n", "for", "i", ":=", "0", ";", "i", "<", "u", ".", "cfg", ".", "Concurrency", ";", "i", "++", "{", "u", ".", "wg", ".", "Add", "(", "1", ")", "\n", "go", "u", ".", "readChunk", "(", "ch", ")", "\n", "}", "\n\n", "// Send part 1 to the workers", "var", "num", "int64", "=", "1", "\n", "ch", "<-", "chunk", "{", "buf", ":", "firstBuf", ",", "part", ":", "firstPart", ",", "num", ":", "num", "}", "\n\n", "// Read and queue the rest of the parts", "for", "u", ".", "geterr", "(", ")", "==", "nil", "&&", "err", "==", "nil", "{", "num", "++", "\n", "// This upload exceeded maximum number of supported parts, error now.", "if", "num", ">", "int64", "(", "u", ".", "cfg", ".", "MaxUploadParts", ")", "||", "num", ">", "int64", "(", "MaxUploadParts", ")", "{", "var", "msg", "string", "\n", "if", "num", ">", "int64", "(", "u", ".", "cfg", ".", "MaxUploadParts", ")", "{", "msg", "=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "u", ".", "cfg", ".", "MaxUploadParts", ")", "\n", "}", "else", "{", "msg", "=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "MaxUploadParts", ")", "\n", "}", "\n", "u", ".", "seterr", "(", "awserr", ".", "New", "(", "\"", "\"", ",", "msg", ",", "nil", ")", ")", "\n", "break", "\n", "}", "\n\n", "var", "reader", "io", ".", "ReadSeeker", "\n", "var", "nextChunkLen", "int", "\n", "var", "part", "[", "]", "byte", "\n", "reader", ",", "nextChunkLen", ",", "part", ",", "err", "=", "u", ".", "nextReader", "(", ")", "\n\n", "if", "err", "!=", "nil", "&&", "err", "!=", "io", ".", "EOF", "{", "u", ".", "seterr", "(", "awserr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ",", "err", ")", ")", "\n", "break", "\n", "}", "\n\n", "if", "nextChunkLen", "==", "0", "{", "// No need to upload empty part, if file was empty to start", "// with empty single part would of been created and never", "// started multipart upload.", "break", "\n", "}", "\n\n", "ch", "<-", "chunk", "{", "buf", ":", "reader", ",", "part", ":", "part", ",", "num", ":", "num", "}", "\n", "}", "\n\n", "// Close the channel, wait for workers, and complete upload", "close", "(", "ch", ")", "\n", "u", ".", "wg", ".", "Wait", "(", ")", "\n", "complete", ":=", "u", ".", "complete", "(", ")", "\n\n", "if", "err", ":=", "u", ".", "geterr", "(", ")", ";", "err", "!=", "nil", "{", "return", "nil", ",", "&", "multiUploadError", "{", "awsError", ":", "awserr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ",", "err", ")", ",", "uploadID", ":", "u", ".", "uploadID", ",", "}", "\n", "}", "\n\n", "// Create a presigned URL of the S3 Get Object in order to have parity with", "// single part upload.", "getReq", ",", "_", ":=", "u", ".", "cfg", ".", "S3", ".", "GetObjectRequest", "(", "&", "s3", ".", "GetObjectInput", "{", "Bucket", ":", "u", ".", "in", ".", "Bucket", ",", "Key", ":", "u", ".", "in", ".", "Key", ",", "}", ")", "\n", "getReq", ".", "Config", ".", "Credentials", "=", "credentials", ".", "AnonymousCredentials", "\n", "uploadLocation", ",", "_", ",", "_", ":=", "getReq", ".", "PresignRequest", "(", "1", ")", "\n\n", "return", "&", "UploadOutput", "{", "Location", ":", "uploadLocation", ",", "VersionID", ":", "complete", ".", "VersionId", ",", "UploadID", ":", "u", ".", "uploadID", ",", "}", ",", "nil", "\n", "}" ]
// upload will perform a multipart upload using the firstBuf buffer containing // the first chunk of data.
[ "upload", "will", "perform", "a", "multipart", "upload", "using", "the", "firstBuf", "buffer", "containing", "the", "first", "chunk", "of", "data", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L521-L612
282
aws/aws-sdk-go
service/s3/s3manager/upload.go
send
func (u *multiuploader) send(c chunk) error { params := &s3.UploadPartInput{ Bucket: u.in.Bucket, Key: u.in.Key, Body: c.buf, UploadId: &u.uploadID, SSECustomerAlgorithm: u.in.SSECustomerAlgorithm, SSECustomerKey: u.in.SSECustomerKey, PartNumber: &c.num, } resp, err := u.cfg.S3.UploadPartWithContext(u.ctx, params, u.cfg.RequestOptions...) // put the byte array back into the pool to conserve memory u.bufferPool.Put(c.part) if err != nil { return err } n := c.num completed := &s3.CompletedPart{ETag: resp.ETag, PartNumber: &n} u.m.Lock() u.parts = append(u.parts, completed) u.m.Unlock() return nil }
go
func (u *multiuploader) send(c chunk) error { params := &s3.UploadPartInput{ Bucket: u.in.Bucket, Key: u.in.Key, Body: c.buf, UploadId: &u.uploadID, SSECustomerAlgorithm: u.in.SSECustomerAlgorithm, SSECustomerKey: u.in.SSECustomerKey, PartNumber: &c.num, } resp, err := u.cfg.S3.UploadPartWithContext(u.ctx, params, u.cfg.RequestOptions...) // put the byte array back into the pool to conserve memory u.bufferPool.Put(c.part) if err != nil { return err } n := c.num completed := &s3.CompletedPart{ETag: resp.ETag, PartNumber: &n} u.m.Lock() u.parts = append(u.parts, completed) u.m.Unlock() return nil }
[ "func", "(", "u", "*", "multiuploader", ")", "send", "(", "c", "chunk", ")", "error", "{", "params", ":=", "&", "s3", ".", "UploadPartInput", "{", "Bucket", ":", "u", ".", "in", ".", "Bucket", ",", "Key", ":", "u", ".", "in", ".", "Key", ",", "Body", ":", "c", ".", "buf", ",", "UploadId", ":", "&", "u", ".", "uploadID", ",", "SSECustomerAlgorithm", ":", "u", ".", "in", ".", "SSECustomerAlgorithm", ",", "SSECustomerKey", ":", "u", ".", "in", ".", "SSECustomerKey", ",", "PartNumber", ":", "&", "c", ".", "num", ",", "}", "\n", "resp", ",", "err", ":=", "u", ".", "cfg", ".", "S3", ".", "UploadPartWithContext", "(", "u", ".", "ctx", ",", "params", ",", "u", ".", "cfg", ".", "RequestOptions", "...", ")", "\n", "// put the byte array back into the pool to conserve memory", "u", ".", "bufferPool", ".", "Put", "(", "c", ".", "part", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "n", ":=", "c", ".", "num", "\n", "completed", ":=", "&", "s3", ".", "CompletedPart", "{", "ETag", ":", "resp", ".", "ETag", ",", "PartNumber", ":", "&", "n", "}", "\n\n", "u", ".", "m", ".", "Lock", "(", ")", "\n", "u", ".", "parts", "=", "append", "(", "u", ".", "parts", ",", "completed", ")", "\n", "u", ".", "m", ".", "Unlock", "(", ")", "\n\n", "return", "nil", "\n", "}" ]
// send performs an UploadPart request and keeps track of the completed // part information.
[ "send", "performs", "an", "UploadPart", "request", "and", "keeps", "track", "of", "the", "completed", "part", "information", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L635-L660
283
aws/aws-sdk-go
service/s3/s3manager/upload.go
geterr
func (u *multiuploader) geterr() error { u.m.Lock() defer u.m.Unlock() return u.err }
go
func (u *multiuploader) geterr() error { u.m.Lock() defer u.m.Unlock() return u.err }
[ "func", "(", "u", "*", "multiuploader", ")", "geterr", "(", ")", "error", "{", "u", ".", "m", ".", "Lock", "(", ")", "\n", "defer", "u", ".", "m", ".", "Unlock", "(", ")", "\n\n", "return", "u", ".", "err", "\n", "}" ]
// geterr is a thread-safe getter for the error object
[ "geterr", "is", "a", "thread", "-", "safe", "getter", "for", "the", "error", "object" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L663-L668
284
aws/aws-sdk-go
service/s3/s3manager/upload.go
seterr
func (u *multiuploader) seterr(e error) { u.m.Lock() defer u.m.Unlock() u.err = e }
go
func (u *multiuploader) seterr(e error) { u.m.Lock() defer u.m.Unlock() u.err = e }
[ "func", "(", "u", "*", "multiuploader", ")", "seterr", "(", "e", "error", ")", "{", "u", ".", "m", ".", "Lock", "(", ")", "\n", "defer", "u", ".", "m", ".", "Unlock", "(", ")", "\n\n", "u", ".", "err", "=", "e", "\n", "}" ]
// seterr is a thread-safe setter for the error object
[ "seterr", "is", "a", "thread", "-", "safe", "setter", "for", "the", "error", "object" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L671-L676
285
aws/aws-sdk-go
service/s3/s3manager/upload.go
fail
func (u *multiuploader) fail() { if u.cfg.LeavePartsOnError { return } params := &s3.AbortMultipartUploadInput{ Bucket: u.in.Bucket, Key: u.in.Key, UploadId: &u.uploadID, } _, err := u.cfg.S3.AbortMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...) if err != nil { logMessage(u.cfg.S3, aws.LogDebug, fmt.Sprintf("failed to abort multipart upload, %v", err)) } }
go
func (u *multiuploader) fail() { if u.cfg.LeavePartsOnError { return } params := &s3.AbortMultipartUploadInput{ Bucket: u.in.Bucket, Key: u.in.Key, UploadId: &u.uploadID, } _, err := u.cfg.S3.AbortMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...) if err != nil { logMessage(u.cfg.S3, aws.LogDebug, fmt.Sprintf("failed to abort multipart upload, %v", err)) } }
[ "func", "(", "u", "*", "multiuploader", ")", "fail", "(", ")", "{", "if", "u", ".", "cfg", ".", "LeavePartsOnError", "{", "return", "\n", "}", "\n\n", "params", ":=", "&", "s3", ".", "AbortMultipartUploadInput", "{", "Bucket", ":", "u", ".", "in", ".", "Bucket", ",", "Key", ":", "u", ".", "in", ".", "Key", ",", "UploadId", ":", "&", "u", ".", "uploadID", ",", "}", "\n", "_", ",", "err", ":=", "u", ".", "cfg", ".", "S3", ".", "AbortMultipartUploadWithContext", "(", "u", ".", "ctx", ",", "params", ",", "u", ".", "cfg", ".", "RequestOptions", "...", ")", "\n", "if", "err", "!=", "nil", "{", "logMessage", "(", "u", ".", "cfg", ".", "S3", ",", "aws", ".", "LogDebug", ",", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "err", ")", ")", "\n", "}", "\n", "}" ]
// fail will abort the multipart unless LeavePartsOnError is set to true.
[ "fail", "will", "abort", "the", "multipart", "unless", "LeavePartsOnError", "is", "set", "to", "true", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L679-L693
286
aws/aws-sdk-go
service/s3/s3manager/upload.go
complete
func (u *multiuploader) complete() *s3.CompleteMultipartUploadOutput { if u.geterr() != nil { u.fail() return nil } // Parts must be sorted in PartNumber order. sort.Sort(u.parts) params := &s3.CompleteMultipartUploadInput{ Bucket: u.in.Bucket, Key: u.in.Key, UploadId: &u.uploadID, MultipartUpload: &s3.CompletedMultipartUpload{Parts: u.parts}, } resp, err := u.cfg.S3.CompleteMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...) if err != nil { u.seterr(err) u.fail() } return resp }
go
func (u *multiuploader) complete() *s3.CompleteMultipartUploadOutput { if u.geterr() != nil { u.fail() return nil } // Parts must be sorted in PartNumber order. sort.Sort(u.parts) params := &s3.CompleteMultipartUploadInput{ Bucket: u.in.Bucket, Key: u.in.Key, UploadId: &u.uploadID, MultipartUpload: &s3.CompletedMultipartUpload{Parts: u.parts}, } resp, err := u.cfg.S3.CompleteMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...) if err != nil { u.seterr(err) u.fail() } return resp }
[ "func", "(", "u", "*", "multiuploader", ")", "complete", "(", ")", "*", "s3", ".", "CompleteMultipartUploadOutput", "{", "if", "u", ".", "geterr", "(", ")", "!=", "nil", "{", "u", ".", "fail", "(", ")", "\n", "return", "nil", "\n", "}", "\n\n", "// Parts must be sorted in PartNumber order.", "sort", ".", "Sort", "(", "u", ".", "parts", ")", "\n\n", "params", ":=", "&", "s3", ".", "CompleteMultipartUploadInput", "{", "Bucket", ":", "u", ".", "in", ".", "Bucket", ",", "Key", ":", "u", ".", "in", ".", "Key", ",", "UploadId", ":", "&", "u", ".", "uploadID", ",", "MultipartUpload", ":", "&", "s3", ".", "CompletedMultipartUpload", "{", "Parts", ":", "u", ".", "parts", "}", ",", "}", "\n", "resp", ",", "err", ":=", "u", ".", "cfg", ".", "S3", ".", "CompleteMultipartUploadWithContext", "(", "u", ".", "ctx", ",", "params", ",", "u", ".", "cfg", ".", "RequestOptions", "...", ")", "\n", "if", "err", "!=", "nil", "{", "u", ".", "seterr", "(", "err", ")", "\n", "u", ".", "fail", "(", ")", "\n", "}", "\n\n", "return", "resp", "\n", "}" ]
// complete successfully completes a multipart upload and returns the response.
[ "complete", "successfully", "completes", "a", "multipart", "upload", "and", "returns", "the", "response", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3manager/upload.go#L696-L718
287
aws/aws-sdk-go
private/model/api/pagination.go
InputTokensString
func (p *Paginator) InputTokensString() string { str := p.InputTokens.([]string) return fmt.Sprintf("%#v", str) }
go
func (p *Paginator) InputTokensString() string { str := p.InputTokens.([]string) return fmt.Sprintf("%#v", str) }
[ "func", "(", "p", "*", "Paginator", ")", "InputTokensString", "(", ")", "string", "{", "str", ":=", "p", ".", "InputTokens", ".", "(", "[", "]", "string", ")", "\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "str", ")", "\n", "}" ]
// InputTokensString returns output tokens formatted as a list
[ "InputTokensString", "returns", "output", "tokens", "formatted", "as", "a", "list" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/pagination.go#L20-L23
288
aws/aws-sdk-go
private/model/api/pagination.go
OutputTokensString
func (p *Paginator) OutputTokensString() string { str := p.OutputTokens.([]string) return fmt.Sprintf("%#v", str) }
go
func (p *Paginator) OutputTokensString() string { str := p.OutputTokens.([]string) return fmt.Sprintf("%#v", str) }
[ "func", "(", "p", "*", "Paginator", ")", "OutputTokensString", "(", ")", "string", "{", "str", ":=", "p", ".", "OutputTokens", ".", "(", "[", "]", "string", ")", "\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "str", ")", "\n", "}" ]
// OutputTokensString returns output tokens formatted as a list
[ "OutputTokensString", "returns", "output", "tokens", "formatted", "as", "a", "list" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/pagination.go#L26-L29
289
aws/aws-sdk-go
private/model/api/pagination.go
setup
func (p *paginationDefinitions) setup() { for n, e := range p.Pagination { if e.InputTokens == nil || e.OutputTokens == nil { continue } paginator := e switch t := paginator.InputTokens.(type) { case string: paginator.InputTokens = []string{t} case []interface{}: toks := []string{} for _, e := range t { s := e.(string) toks = append(toks, s) } paginator.InputTokens = toks } switch t := paginator.OutputTokens.(type) { case string: paginator.OutputTokens = []string{t} case []interface{}: toks := []string{} for _, e := range t { s := e.(string) toks = append(toks, s) } paginator.OutputTokens = toks } if o, ok := p.Operations[n]; ok { o.Paginator = &paginator } else { panic("unknown operation for paginator " + n) } } }
go
func (p *paginationDefinitions) setup() { for n, e := range p.Pagination { if e.InputTokens == nil || e.OutputTokens == nil { continue } paginator := e switch t := paginator.InputTokens.(type) { case string: paginator.InputTokens = []string{t} case []interface{}: toks := []string{} for _, e := range t { s := e.(string) toks = append(toks, s) } paginator.InputTokens = toks } switch t := paginator.OutputTokens.(type) { case string: paginator.OutputTokens = []string{t} case []interface{}: toks := []string{} for _, e := range t { s := e.(string) toks = append(toks, s) } paginator.OutputTokens = toks } if o, ok := p.Operations[n]; ok { o.Paginator = &paginator } else { panic("unknown operation for paginator " + n) } } }
[ "func", "(", "p", "*", "paginationDefinitions", ")", "setup", "(", ")", "{", "for", "n", ",", "e", ":=", "range", "p", ".", "Pagination", "{", "if", "e", ".", "InputTokens", "==", "nil", "||", "e", ".", "OutputTokens", "==", "nil", "{", "continue", "\n", "}", "\n", "paginator", ":=", "e", "\n\n", "switch", "t", ":=", "paginator", ".", "InputTokens", ".", "(", "type", ")", "{", "case", "string", ":", "paginator", ".", "InputTokens", "=", "[", "]", "string", "{", "t", "}", "\n", "case", "[", "]", "interface", "{", "}", ":", "toks", ":=", "[", "]", "string", "{", "}", "\n", "for", "_", ",", "e", ":=", "range", "t", "{", "s", ":=", "e", ".", "(", "string", ")", "\n", "toks", "=", "append", "(", "toks", ",", "s", ")", "\n", "}", "\n", "paginator", ".", "InputTokens", "=", "toks", "\n", "}", "\n", "switch", "t", ":=", "paginator", ".", "OutputTokens", ".", "(", "type", ")", "{", "case", "string", ":", "paginator", ".", "OutputTokens", "=", "[", "]", "string", "{", "t", "}", "\n", "case", "[", "]", "interface", "{", "}", ":", "toks", ":=", "[", "]", "string", "{", "}", "\n", "for", "_", ",", "e", ":=", "range", "t", "{", "s", ":=", "e", ".", "(", "string", ")", "\n", "toks", "=", "append", "(", "toks", ",", "s", ")", "\n", "}", "\n", "paginator", ".", "OutputTokens", "=", "toks", "\n", "}", "\n\n", "if", "o", ",", "ok", ":=", "p", ".", "Operations", "[", "n", "]", ";", "ok", "{", "o", ".", "Paginator", "=", "&", "paginator", "\n", "}", "else", "{", "panic", "(", "\"", "\"", "+", "n", ")", "\n", "}", "\n", "}", "\n", "}" ]
// setup runs post-processing on the paginator configuration.
[ "setup", "runs", "post", "-", "processing", "on", "the", "paginator", "configuration", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/pagination.go#L55-L91
290
aws/aws-sdk-go
service/acmpca/waiters.go
WaitUntilAuditReportCreated
func (c *ACMPCA) WaitUntilAuditReportCreated(input *DescribeCertificateAuthorityAuditReportInput) error { return c.WaitUntilAuditReportCreatedWithContext(aws.BackgroundContext(), input) }
go
func (c *ACMPCA) WaitUntilAuditReportCreated(input *DescribeCertificateAuthorityAuditReportInput) error { return c.WaitUntilAuditReportCreatedWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "ACMPCA", ")", "WaitUntilAuditReportCreated", "(", "input", "*", "DescribeCertificateAuthorityAuditReportInput", ")", "error", "{", "return", "c", ".", "WaitUntilAuditReportCreatedWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilAuditReportCreated uses the ACM-PCA API operation // DescribeCertificateAuthorityAuditReport to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilAuditReportCreated", "uses", "the", "ACM", "-", "PCA", "API", "operation", "DescribeCertificateAuthorityAuditReport", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/acmpca/waiters.go#L16-L18
291
aws/aws-sdk-go
service/acmpca/waiters.go
WaitUntilCertificateAuthorityCSRCreated
func (c *ACMPCA) WaitUntilCertificateAuthorityCSRCreated(input *GetCertificateAuthorityCsrInput) error { return c.WaitUntilCertificateAuthorityCSRCreatedWithContext(aws.BackgroundContext(), input) }
go
func (c *ACMPCA) WaitUntilCertificateAuthorityCSRCreated(input *GetCertificateAuthorityCsrInput) error { return c.WaitUntilCertificateAuthorityCSRCreatedWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "ACMPCA", ")", "WaitUntilCertificateAuthorityCSRCreated", "(", "input", "*", "GetCertificateAuthorityCsrInput", ")", "error", "{", "return", "c", ".", "WaitUntilCertificateAuthorityCSRCreatedWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilCertificateAuthorityCSRCreated uses the ACM-PCA API operation // GetCertificateAuthorityCsr to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilCertificateAuthorityCSRCreated", "uses", "the", "ACM", "-", "PCA", "API", "operation", "GetCertificateAuthorityCsr", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/acmpca/waiters.go#L67-L69
292
aws/aws-sdk-go
service/acmpca/waiters.go
WaitUntilCertificateIssued
func (c *ACMPCA) WaitUntilCertificateIssued(input *GetCertificateInput) error { return c.WaitUntilCertificateIssuedWithContext(aws.BackgroundContext(), input) }
go
func (c *ACMPCA) WaitUntilCertificateIssued(input *GetCertificateInput) error { return c.WaitUntilCertificateIssuedWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "ACMPCA", ")", "WaitUntilCertificateIssued", "(", "input", "*", "GetCertificateInput", ")", "error", "{", "return", "c", ".", "WaitUntilCertificateIssuedWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilCertificateIssued uses the ACM-PCA API operation // GetCertificate to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilCertificateIssued", "uses", "the", "ACM", "-", "PCA", "API", "operation", "GetCertificate", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/acmpca/waiters.go#L118-L120
293
aws/aws-sdk-go
aws/awsutil/string_value.go
StringValue
func StringValue(i interface{}) string { var buf bytes.Buffer stringValue(reflect.ValueOf(i), 0, &buf) return buf.String() }
go
func StringValue(i interface{}) string { var buf bytes.Buffer stringValue(reflect.ValueOf(i), 0, &buf) return buf.String() }
[ "func", "StringValue", "(", "i", "interface", "{", "}", ")", "string", "{", "var", "buf", "bytes", ".", "Buffer", "\n", "stringValue", "(", "reflect", ".", "ValueOf", "(", "i", ")", ",", "0", ",", "&", "buf", ")", "\n", "return", "buf", ".", "String", "(", ")", "\n", "}" ]
// StringValue returns the string representation of a value.
[ "StringValue", "returns", "the", "string", "representation", "of", "a", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/awsutil/string_value.go#L11-L15
294
aws/aws-sdk-go
service/appmesh/api.go
SetIntervalMillis
func (s *HealthCheckPolicy) SetIntervalMillis(v int64) *HealthCheckPolicy { s.IntervalMillis = &v return s }
go
func (s *HealthCheckPolicy) SetIntervalMillis(v int64) *HealthCheckPolicy { s.IntervalMillis = &v return s }
[ "func", "(", "s", "*", "HealthCheckPolicy", ")", "SetIntervalMillis", "(", "v", "int64", ")", "*", "HealthCheckPolicy", "{", "s", ".", "IntervalMillis", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetIntervalMillis sets the IntervalMillis field's value.
[ "SetIntervalMillis", "sets", "the", "IntervalMillis", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appmesh/api.go#L5021-L5024
295
aws/aws-sdk-go
service/appmesh/api.go
SetTimeoutMillis
func (s *HealthCheckPolicy) SetTimeoutMillis(v int64) *HealthCheckPolicy { s.TimeoutMillis = &v return s }
go
func (s *HealthCheckPolicy) SetTimeoutMillis(v int64) *HealthCheckPolicy { s.TimeoutMillis = &v return s }
[ "func", "(", "s", "*", "HealthCheckPolicy", ")", "SetTimeoutMillis", "(", "v", "int64", ")", "*", "HealthCheckPolicy", "{", "s", ".", "TimeoutMillis", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTimeoutMillis sets the TimeoutMillis field's value.
[ "SetTimeoutMillis", "sets", "the", "TimeoutMillis", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appmesh/api.go#L5045-L5048
296
aws/aws-sdk-go
service/appmesh/api.go
SetMatch
func (s *HttpRoute) SetMatch(v *HttpRouteMatch) *HttpRoute { s.Match = v return s }
go
func (s *HttpRoute) SetMatch(v *HttpRouteMatch) *HttpRoute { s.Match = v return s }
[ "func", "(", "s", "*", "HttpRoute", ")", "SetMatch", "(", "v", "*", "HttpRouteMatch", ")", "*", "HttpRoute", "{", "s", ".", "Match", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetMatch sets the Match field's value.
[ "SetMatch", "sets", "the", "Match", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appmesh/api.go#L5114-L5117
297
aws/aws-sdk-go
service/appmesh/api.go
SetMeshes
func (s *ListMeshesOutput) SetMeshes(v []*MeshRef) *ListMeshesOutput { s.Meshes = v return s }
go
func (s *ListMeshesOutput) SetMeshes(v []*MeshRef) *ListMeshesOutput { s.Meshes = v return s }
[ "func", "(", "s", "*", "ListMeshesOutput", ")", "SetMeshes", "(", "v", "[", "]", "*", "MeshRef", ")", "*", "ListMeshesOutput", "{", "s", ".", "Meshes", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetMeshes sets the Meshes field's value.
[ "SetMeshes", "sets", "the", "Meshes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appmesh/api.go#L5301-L5304
298
aws/aws-sdk-go
service/appmesh/api.go
SetVirtualNodes
func (s *ListVirtualNodesOutput) SetVirtualNodes(v []*VirtualNodeRef) *ListVirtualNodesOutput { s.VirtualNodes = v return s }
go
func (s *ListVirtualNodesOutput) SetVirtualNodes(v []*VirtualNodeRef) *ListVirtualNodesOutput { s.VirtualNodes = v return s }
[ "func", "(", "s", "*", "ListVirtualNodesOutput", ")", "SetVirtualNodes", "(", "v", "[", "]", "*", "VirtualNodeRef", ")", "*", "ListVirtualNodesOutput", "{", "s", ".", "VirtualNodes", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetVirtualNodes sets the VirtualNodes field's value.
[ "SetVirtualNodes", "sets", "the", "VirtualNodes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appmesh/api.go#L5646-L5649
299
aws/aws-sdk-go
service/appmesh/api.go
SetVirtualRouters
func (s *ListVirtualRoutersOutput) SetVirtualRouters(v []*VirtualRouterRef) *ListVirtualRoutersOutput { s.VirtualRouters = v return s }
go
func (s *ListVirtualRoutersOutput) SetVirtualRouters(v []*VirtualRouterRef) *ListVirtualRoutersOutput { s.VirtualRouters = v return s }
[ "func", "(", "s", "*", "ListVirtualRoutersOutput", ")", "SetVirtualRouters", "(", "v", "[", "]", "*", "VirtualRouterRef", ")", "*", "ListVirtualRoutersOutput", "{", "s", ".", "VirtualRouters", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetVirtualRouters sets the VirtualRouters field's value.
[ "SetVirtualRouters", "sets", "the", "VirtualRouters", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/appmesh/api.go#L5754-L5757