id stringlengths 2 7 | text stringlengths 17 51.2k | title stringclasses 1
value |
|---|---|---|
c165200 | disk...")
errCh, err = driver.DeleteDisk(config.Zone, config.DiskName)
if err == nil {
select {
case err = <-errCh:
case <-time.After(config.stateTimeout):
err = errors.New("time out while waiting for disk to delete")
}
}
if err != nil {
ui.Error(fmt.Sprintf(
"Error deleting disk. Please delete it... | |
c165201 |
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "keyvault.VaultsClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "ke... | |
c165202 | autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.baseURI),
autorest.WithPathParameters("/subscriptions/{SubscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.... | |
c165203 | error) {
return autorest.SendWithSender(client,
req,
azure.DoPollForAsynchronous(client.PollingDelay))
} | |
c165204 | azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
} | |
c165205 | range r.Comments {
for k, v := range comment {
out, _ = json.Marshal(v)
m[k] = out
}
}
return json.Marshal(m)
} | |
c165206 |
if !ok {
return nil, fmt.Errorf("Failed to convert unused root level keys to map")
}
for _, unused := range md.Unused {
if unused[0] == '_' {
commentVal, ok := unusedMap[unused].(string)
if !ok {
return nil, fmt.Errorf("Failed to cast root level comment value to string")
}
comment :=... | |
c165207 | if err != nil {
syntaxErr, ok := err.(*json.SyntaxError)
if !ok {
return nil, err
}
// Rewind the file and get a better error
f.Seek(0, os.SEEK_SET)
// Grab the error location, and return a string to point to offending syntax error
line, col, highlight := highlightPosition(f, syntaxErr.Offset)
err =... | |
c165208 | line++
col = 1
} else {
// Write current line, until line is safe, or error point is encountered
col++
thisLine.WriteByte(b)
}
}
// Populate highlight string to place a '^' char at offending column
if line > 1 {
highlight += fmt.Sprintf("%5d: %s\n", line-1, lastLine)
}
highlight += fmt.Sprintf... | |
c165209 | c.PrlctlVersionFile = ".prlctl_version"
}
return nil
} | |
c165210 | return err
}
log.Printf("[ERROR] %d error received, will ignore and retry: %s", errCode.Actual, err)
time.Sleep(2 * time.Second)
continue
}
return err
}
if status == "available" {
return nil
}
log.Printf("Waiting for volume creation status: %s", status)
time.Sleep(2 * time.Seco... | |
c165211 |
volumeSizeGB := int(sourceImage.SizeBytes / 1024 / 1024 / 1024)
// Increment gigabytes size if the initial size can't be divided without
// remainder.
if volumeSizeMB%1024 > 0 {
volumeSizeGB++
}
return volumeSizeGB, nil
} | |
c165212 | s.CloudFormationStackARN = &v
return s
} | |
c165213 | []*ScalingPlanResource) *DescribeScalingPlanResourcesOutput {
s.ScalingPlanResources = v
return s
} | |
c165214 | []*ApplicationSource) *DescribeScalingPlansInput {
s.ApplicationSources = v
return s
} | |
c165215 | []*string) *DescribeScalingPlansInput {
s.ScalingPlanNames = v
return s
} | |
c165216 | []*ScalingPlan) *DescribeScalingPlansOutput {
s.ScalingPlans = v
return s
} | |
c165217 | string) *GetScalingPlanResourceForecastDataInput {
s.ForecastDataType = &v
return s
} | |
c165218 | string) *PredefinedLoadMetricSpecification {
s.PredefinedLoadMetricType = &v
return s
} | |
c165219 | string) *PredefinedScalingMetricSpecification {
s.PredefinedScalingMetricType = &v
return s
} | |
c165220 | *ScalingInstruction {
s.CustomizedLoadMetricSpecification = v
return s
} | |
c165221 | s.DisableDynamicScaling = &v
return s
} | |
c165222 | *ScalingInstruction {
s.PredefinedLoadMetricSpecification = v
return s
} | |
c165223 | s.PredictiveScalingMaxCapacityBehavior = &v
return s
} | |
c165224 | s.PredictiveScalingMaxCapacityBuffer = &v
return s
} | |
c165225 | s.PredictiveScalingMode = &v
return s
} | |
c165226 | s.ScalingPolicyUpdateBehavior = &v
return s
} | |
c165227 | s.ScheduledActionBufferTime = &v
return s
} | |
c165228 | *ScalingInstruction {
s.TargetTrackingConfigurations = v
return s
} | |
c165229 | s.StatusStartTime = &v
return s
} | |
c165230 | s.ScalingStatusCode = &v
return s
} | |
c165231 | s.ScalingStatusMessage = &v
return s
} | |
c165232 | *TargetTrackingConfiguration {
s.CustomizedScalingMetricSpecification = v
return s
} | |
c165233 | *TargetTrackingConfiguration {
s.PredefinedScalingMetricSpecification = v
return s
} | |
c165234 | = true
return rc.Body.Close()
} | |
c165235 | io.EOF
}
return rc.Decrypter.Read(b)
} | |
c165236 |
prettify(reflect.ValueOf(i), 0, &buf)
return buf.String()
} | |
c165237 | buf.WriteString("," + nl)
}
}
buf.WriteString(nl + id + "]")
case reflect.Map:
buf.WriteString("{\n")
for i, k := range v.MapKeys() {
buf.WriteString(strings.Repeat(" ", indent+2))
buf.WriteString(k.String() + ": ")
prettify(v.MapIndex(k), indent+2, buf)
if i < v.Len()-1 {
buf.WriteSt... | |
c165238 | *StreamInfo) *DescribeStreamOutput {
s.StreamInfo = v
return s
} | |
c165239 | string) *GetDataEndpointInput {
s.APIName = &v
return s
} | |
c165240 | {
s.DataEndpoint = &v
return s
} | |
c165241 | *ListStreamsInput {
s.StreamNameCondition = v
return s
} | |
c165242 | {
s.StreamInfoList = v
return s
} | |
c165243 | string) *StreamNameCondition {
s.ComparisonValue = &v
return s
} | |
c165244 | s.DataRetentionChangeInHours = &v
return s
} | |
c165245 | != nil {
msg = fmt.Sprintf("%s\ncaused by: %s", msg, origErr.Error())
}
return msg
} | |
c165246 | code,
message: message,
errs: origErrs,
}
return b
} | |
c165247 | SprintError(b.code, b.message, "", errorList(b.errs))
}
return SprintError(b.code, b.message, "", nil)
} | |
c165248 | return NewBatchError(err.Code(), err.Message(), b.errs[1:])
}
return NewBatchError("BatchedErrors",
"multiple errors occurred", b.errs)
}
} | |
c165249 | err,
statusCode: statusCode,
requestID: requestID,
}
} | |
c165250 | return b.OrigErrs()
}
return []error{r.OrigErr()}
} | |
c165251 | int64) *AbortIncompleteMultipartUpload {
s.DaysAfterInitiation = &v
return s
} | |
c165252 | *StorageClassAnalysis) *AnalyticsConfiguration {
s.StorageClassAnalysis = v
return s
} | |
c165253 | string) *AnalyticsS3BucketDestination {
s.BucketAccountId = &v
return s
} | |
c165254 | s.AllowQuotedRecordDelimiter = &v
return s
} | |
c165255 | s.FileHeaderInfo = &v
return s
} | |
c165256 | s.QuoteFields = &v
return s
} | |
c165257 | string) *CloudFunctionConfiguration {
s.CloudFunction = &v
return s
} | |
c165258 | *CompleteMultipartUploadInput {
s.MultipartUpload = v
return s
} | |
c165259 | s.HttpErrorCodeReturnedEquals = &v
return s
} | |
c165260 | s.KeyPrefixEquals = &v
return s
} | |
c165261 | s.TaggingDirective = &v
return s
} | |
c165262 | *CopyObjectOutput {
s.CopyObjectResult = v
return s
} | |
c165263 | *CreateBucketInput {
s.CreateBucketConfiguration = v
return s
} | |
c165264 | s.ObjectLockEnabledForBucket = &v
return s
} | |
c165265 | {
s.Years = &v
return s
} | |
c165266 | s.Quiet = &v
return s
} | |
c165267 | s.DeleteMarkerVersionId = &v
return s
} | |
c165268 | *Destination {
s.AccessControlTranslation = v
return s
} | |
c165269 | s.KMSContext = &v
return s
} | |
c165270 | s.KMSKeyId = &v
return s
} | |
c165271 | {
s.ReplicaKmsKeyID = &v
return s
} | |
c165272 | protocol.PayloadUnmarshaler,
msg eventstream.Message,
) error {
return nil
} | |
c165273 | s.ResponseCacheControl = &v
return s
} | |
c165274 | s.ResponseContentDisposition = &v
return s
} | |
c165275 | s.ResponseContentEncoding = &v
return s
} | |
c165276 | s.ResponseContentLanguage = &v
return s
} | |
c165277 | s.ResponseContentType = &v
return s
} | |
c165278 | s.ResponseExpires = &v
return s
} | |
c165279 | int64) *GetObjectOutput {
s.TagCount = &v
return s
} | |
c165280 | string) *IndexDocument {
s.Suffix = &v
return s
} | |
c165281 | *InputSerialization {
s.Parquet = v
return s
} | |
c165282 | s.IncludedObjectVersions = &v
return s
} | |
c165283 | bool) *InventoryConfiguration {
s.IsEnabled = &v
return s
} | |
c165284 | []*string) *InventoryConfiguration {
s.OptionalFields = v
return s
} | |
c165285 | *SSEKMS) *InventoryEncryption {
s.SSEKMS = v
return s
} | |
c165286 | *SSES3) *InventoryEncryption {
s.SSES3 = v
return s
} | |
c165287 | *KeyFilter {
s.FilterRules = v
return s
} | |
c165288 | s.ExpiredObjectDeleteMarker = &v
return s
} | |
c165289 | *LifecycleRule {
s.NoncurrentVersionTransitions = v
return s
} | |
c165290 |
s.Transitions = v
return s
} | |
c165291 | []*AnalyticsConfiguration) *ListBucketAnalyticsConfigurationsOutput {
s.AnalyticsConfigurationList = v
return s
} | |
c165292 | []*InventoryConfiguration) *ListBucketInventoryConfigurationsOutput {
s.InventoryConfigurationList = v
return s
} | |
c165293 | []*MetricsConfiguration) *ListBucketMetricsConfigurationsOutput {
s.MetricsConfigurationList = v
return s
} | |
c165294 | string) *ListMultipartUploadsOutput {
s.NextUploadIdMarker = &v
return s
} | |
c165295 | *ListObjectVersionsOutput {
s.DeleteMarkers = v
return s
} | |
c165296 | {
s.NextVersionIdMarker = &v
return s
} | |
c165297 | bool) *ListObjectsV2Input {
s.FetchOwner = &v
return s
} | |
c165298 | {
s.KeyCount = &v
return s
} | |
c165299 | s.NextPartNumberMarker = &v
return s
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.