(line, character, prefixLength protocol.UInteger)
| 795 | } |
| 796 | |
| 797 | func serviceBuildProperties(line, character, prefixLength protocol.UInteger) []protocol.CompletionItem { |
| 798 | return []protocol.CompletionItem{ |
| 799 | { |
| 800 | Label: "additional_contexts", |
| 801 | Detail: types.CreateStringPointer("array or object"), |
| 802 | Documentation: "Either a dictionary mapping keys to values, or a list of strings.", |
| 803 | TextEdit: textEdit("additional_contexts:\n ", line, character, prefixLength), |
| 804 | InsertTextMode: types.CreateInsertTextModePointer(protocol.InsertTextModeAsIs), |
| 805 | InsertTextFormat: types.CreateInsertTextFormatPointer(protocol.InsertTextFormatSnippet), |
| 806 | }, |
| 807 | { |
| 808 | Label: "args", |
| 809 | Detail: types.CreateStringPointer("array or object"), |
| 810 | Documentation: "Either a dictionary mapping keys to values, or a list of strings.", |
| 811 | TextEdit: textEdit("args:\n ", line, character, prefixLength), |
| 812 | InsertTextMode: types.CreateInsertTextModePointer(protocol.InsertTextModeAsIs), |
| 813 | InsertTextFormat: types.CreateInsertTextFormatPointer(protocol.InsertTextFormatSnippet), |
| 814 | }, |
| 815 | { |
| 816 | Label: "cache_from", |
| 817 | Detail: types.CreateStringPointer("array"), |
| 818 | Documentation: "List of sources the image builder should use for cache resolution", |
| 819 | TextEdit: textEdit("cache_from:\n - ", line, character, prefixLength), |
| 820 | InsertTextMode: types.CreateInsertTextModePointer(protocol.InsertTextModeAsIs), |
| 821 | InsertTextFormat: types.CreateInsertTextFormatPointer(protocol.InsertTextFormatSnippet), |
| 822 | }, |
| 823 | { |
| 824 | Label: "cache_to", |
| 825 | Detail: types.CreateStringPointer("array"), |
| 826 | Documentation: "Cache destinations for the build cache.", |
| 827 | TextEdit: textEdit("cache_to:\n - ", line, character, prefixLength), |
| 828 | InsertTextMode: types.CreateInsertTextModePointer(protocol.InsertTextModeAsIs), |
| 829 | InsertTextFormat: types.CreateInsertTextFormatPointer(protocol.InsertTextFormatSnippet), |
| 830 | }, |
| 831 | { |
| 832 | Label: "context", |
| 833 | Detail: types.CreateStringPointer("string"), |
| 834 | Documentation: "Path to the build context. Can be a relative path or a URL.", |
| 835 | TextEdit: textEdit("context: ", line, character, prefixLength), |
| 836 | InsertTextMode: types.CreateInsertTextModePointer(protocol.InsertTextModeAsIs), |
| 837 | InsertTextFormat: types.CreateInsertTextFormatPointer(protocol.InsertTextFormatSnippet), |
| 838 | }, |
| 839 | { |
| 840 | Label: "dockerfile", |
| 841 | Detail: types.CreateStringPointer("string"), |
| 842 | Documentation: "Name of the Dockerfile to use for building the image.", |
| 843 | TextEdit: textEdit("dockerfile: ", line, character, prefixLength), |
| 844 | InsertTextMode: types.CreateInsertTextModePointer(protocol.InsertTextModeAsIs), |
| 845 | InsertTextFormat: types.CreateInsertTextFormatPointer(protocol.InsertTextFormatSnippet), |
| 846 | }, |
| 847 | { |
| 848 | Label: "dockerfile_inline", |
| 849 | Detail: types.CreateStringPointer("string"), |
| 850 | Documentation: "Inline Dockerfile content to use instead of a Dockerfile from the build context.", |
| 851 | TextEdit: textEdit("dockerfile_inline: ", line, character, prefixLength), |
| 852 | InsertTextMode: types.CreateInsertTextModePointer(protocol.InsertTextModeAsIs), |
| 853 | InsertTextFormat: types.CreateInsertTextFormatPointer(protocol.InsertTextFormatSnippet), |
| 854 | }, |
no test coverage detected