DocumentSourceInfoBuildLocalFile creates document source information for local file type
(content string, fileType string)
| 382 | |
| 383 | // DocumentSourceInfoBuildLocalFile creates document source information for local file type |
| 384 | func DocumentSourceInfoBuildLocalFile(content string, fileType string) *DocumentSourceInfo { |
| 385 | encodedContent := base64.StdEncoding.EncodeToString([]byte(content)) |
| 386 | return &DocumentSourceInfo{ |
| 387 | FileBase64: &encodedContent, |
| 388 | FileType: &fileType, |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | // DocumentUpdateRuleBuildNoAuto creates a rule for no automatic updates |
| 393 | func DocumentUpdateRuleBuildNoAuto() *DocumentUpdateRule { |
no outgoing calls
no test coverage detected